diff options
author | John Crispin <blogic@openwrt.org> | 2013-08-01 14:30:58 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-08-01 14:30:58 +0000 |
commit | c956dee4dbb4296bda2112efddbb08f8bc2c5715 (patch) | |
tree | 8bb3c27f1b6e32f5b80f9526ceb33a3ca1e4c1ac /target/linux/ramips/base-files/lib | |
parent | 48159ba927ade03cac00ba39fbe8065b5b77dbbd (diff) | |
download | master-187ad058-c956dee4dbb4296bda2112efddbb08f8bc2c5715.tar.gz master-187ad058-c956dee4dbb4296bda2112efddbb08f8bc2c5715.tar.bz2 master-187ad058-c956dee4dbb4296bda2112efddbb08f8bc2c5715.zip |
ramips: add Poray M4 4M/8M support
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37637 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r-- | target/linux/ramips/base-files/lib/preinit/06_set_iface_mac | 3 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/ramips.sh | 3 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/upgrade/platform.sh | 1 |
3 files changed, 6 insertions, 1 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 86c19b0b81..f9aabd5c4e 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,7 +75,8 @@ preinit_set_mac_address() { mac=$(mtd_get_mac_binary factory 40) ifconfig eth0 hw ether $mac 2>/dev/null ;; - m3) + m3 |\ + m4) mac=$(mtd_get_mac_binary factory 4) mac=$(macaddr_add "$mac" -1) 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 7afa707363..e3776f1304 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -151,6 +151,9 @@ ramips_board_detect() { *"Poray M3") name="m3" ;; + *"Poray M4") + name="m4" + ;; *"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 4ac86e97e0..5e1a7a5651 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -45,6 +45,7 @@ platform_check_image() { hw550-3g | \ hg255d | \ m3 | \ + m4 | \ mofi3500-3gn | \ mpr-a1 | \ mpr-a2 | \ |