diff options
author | John Crispin <john@openwrt.org> | 2015-07-08 14:26:18 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-07-08 14:26:18 +0000 |
commit | dc2c89c64c0518a53686498926bd190f624a4a61 (patch) | |
tree | afc413fd3565c18a63dda69a8a54c70b3fe82183 /target/linux/ar71xx/base-files/lib | |
parent | 8503f34ce83b3a606159b3d155af33d72dcbd57d (diff) | |
download | upstream-dc2c89c64c0518a53686498926bd190f624a4a61.tar.gz upstream-dc2c89c64c0518a53686498926bd190f624a4a61.tar.bz2 upstream-dc2c89c64c0518a53686498926bd190f624a4a61.zip |
ar71xx: fix board name ordering
r46248 added case statements in the same places
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 46274
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rw-r--r-- | target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx index c39169aa5d..92b3765bb2 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx +++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx @@ -22,9 +22,6 @@ fetch_mac_from_mtd() { preinit_set_mac_address() { case $(ar71xx_board_name) in - tew-632brp) - fetch_mac_from_mtd config lan_mac wan_mac - ;; dir-615-c1) fetch_mac_from_mtd config lan_mac wan_mac echo 1 > /sys/class/leds/dir-615-c1:green:wancpu/brightness @@ -38,6 +35,9 @@ preinit_set_mac_address() { mac_wan=$(mtd_get_mac_binary caldata 6) [ -n "$mac_wan" ] && ifconfig eth0 hw ether "$mac_wan" ;; + tew-632brp) + fetch_mac_from_mtd config lan_mac wan_mac + ;; wrt160nl) fetch_mac_from_mtd nvram lan_hwaddr wan_hwaddr ;; |