diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-08-01 14:30:53 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-08-01 14:30:53 +0000 |
commit | 489deea3fa726eabbb96a1b3b6ca79bf6111a57a (patch) | |
tree | adf19cfc5d2ec253fd7f6927f3168341b60cfcc8 /target/linux/ramips/base-files | |
parent | 9022ccd275f1e6d047f282d3daca247318fd7b00 (diff) |
ramips: add Poray M3 support
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37636 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
5 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index f8e97875aa..a68538b2f7 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -52,6 +52,9 @@ get_status_led() { hw550-3g) status_led="hw550-3g:green:status" ;; + m3) + status_led="m3:blue:status" + ;; mofi3500-3gn) status_led="mofi3500-3gn:green:status" ;; diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index 6877588a45..307330b063 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -226,6 +226,11 @@ ramips_setup_macs() wan_mac=$(macaddr_add "$lan_mac" 1) ;; + m3) + lan_mac=$(mtd_get_mac_binary factory 4) + lan_mac=$(macaddr_add "$lan_mac" -1) + ;; + nbg-419n | \ wcr-150gn) lan_mac=$(mtd_get_mac_binary factory 4) 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 aacec25fe3..86c19b0b81 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 b1ecc8dfb9..7afa707363 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 1d867a73f5..4ac86e97e0 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 | \ |