diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-03-04 16:09:11 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-03-04 16:09:11 +0000 |
commit | 2d3391993baa6cfdfecf955d6a18b2a5736f4b79 (patch) | |
tree | ed00614bd669241dbf0fa43b845a4cbede3c7c89 /target/linux/ramips/base-files/lib | |
parent | 81f7a21315b1f8aa292ddcbe036eea819de59369 (diff) | |
download | upstream-2d3391993baa6cfdfecf955d6a18b2a5736f4b79.tar.gz upstream-2d3391993baa6cfdfecf955d6a18b2a5736f4b79.tar.bz2 upstream-2d3391993baa6cfdfecf955d6a18b2a5736f4b79.zip |
ramips: board support for Asus RT-N10+
[juhosg: fix indentation in platform scripts, and remove debug
messages from 06_set_iface_mac]
Signed-off-by: Patrick van Staveren <trick@vanstaveren.us>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30808 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 | 4 | ||||
-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, 8 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 66eb6b98a4..cb9c7abd1b 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 @@ -36,6 +36,10 @@ preinit_set_mac_address() { mac=$(ramips_get_mac_binary board-nvram 65440) ifconfig eth0 hw ether $mac 2>/dev/null ;; + rt-n10-plus) + mac=$(ramips_get_mac_binary devconf 4) + ifconfig eth0 hw ether $mac 2>/dev/null + ;; esac } diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 728f525d68..35672092b7 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -98,6 +98,9 @@ ramips_board_name() { *"RT-G32 B1") name="rt-g32-b1" ;; + *"RT-N10+") + name="rt-n10-plus" + ;; *"RT-N15") name="rt-n15" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index a2f351353c..1f6910d762 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -27,6 +27,7 @@ platform_check_image() { nw718 | \ omni-emb | \ rt-g32-b1 | \ + rt-n10-plus | \ rt-n15 | \ rt-n56u | \ sl-r7205 | \ |