diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-20 09:37:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-20 09:37:07 +0000 |
commit | 975e1357e6136ab5126e8d079e80bdcde338f8a6 (patch) | |
tree | 5c8021d855246e91c953b1b34c89e1d8dccd1fc4 /target/linux/ramips | |
parent | 1773aa5163cc3039ae29f3261d84f98c14836937 (diff) | |
download | mtk-20170518-975e1357e6136ab5126e8d079e80bdcde338f8a6.zip mtk-20170518-975e1357e6136ab5126e8d079e80bdcde338f8a6.tar.gz mtk-20170518-975e1357e6136ab5126e8d079e80bdcde338f8a6.tar.bz2 |
ramips: fix LAN/WAN MAC address for WSR-600/1166
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44903
Diffstat (limited to 'target/linux/ramips')
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/02_network | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 7e9d8c9..89d1681 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -347,6 +347,15 @@ ramips_setup_macs() wan_mac=$(mtd_get_mac_binary factory 46) ;; + wsr-600) + wan_mac=$(mtd_get_mac_binary factory 4) + lan_mac=$wan_mac + ;; + wsr-1166) + local index="$(find_mtd_index "board_data")" + wan_mac="$(grep -m1 mac= "/dev/mtd${index}" | cut -d= -f2)" + lan_mac=$wan_mac + ;; *) lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(macaddr_add "$lan_mac" 1) |