summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/lib
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac5
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
3 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
index aacec25..86c19b0 100644
--- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
+++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
@@ -75,6 +75,11 @@ preinit_set_mac_address() {
mac=$(mtd_get_mac_binary factory 40)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
+ m3)
+ mac=$(mtd_get_mac_binary factory 4)
+ mac=$(macaddr_add "$mac" -1)
+ ifconfig eth0 hw ether $mac 2>/dev/null
+ ;;
wl341v3)
mac=$(mtd_get_mac_binary board-nvram 65440)
ifconfig eth0 hw ether $mac 2>/dev/null
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index b1ecc8d..7afa707 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -148,6 +148,9 @@ ramips_board_detect() {
*"Planex MZK-W300NH2"*)
name="mzk-w300nh2"
;;
+ *"Poray M3")
+ name="m3"
+ ;;
*"PWH2004")
name="pwh2004"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 1d867a7..4ac86e9 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -44,6 +44,7 @@ platform_check_image() {
freestation5 | \
hw550-3g | \
hg255d | \
+ m3 | \
mofi3500-3gn | \
mpr-a1 | \
mpr-a2 | \