aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/base-files
diff options
context:
space:
mode:
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>2019-08-21 22:40:48 +0800
committerHauke Mehrtens <hauke@hauke-m.de>2019-09-01 18:38:04 +0200
commit26851f9db2757071cff0007a4963a5c60cce4ef9 (patch)
tree0b3809a0875811f6011b4e521b1473c724eed2d3 /target/linux/mvebu/base-files
parent7735cce0c5c306bd9eea20ca2805e4a492c02be9 (diff)
downloadupstream-26851f9db2757071cff0007a4963a5c60cce4ef9.tar.gz
upstream-26851f9db2757071cff0007a4963a5c60cce4ef9.tar.bz2
upstream-26851f9db2757071cff0007a4963a5c60cce4ef9.zip
mvebu: fix Linksys WRT LAN/WAN MAC addresses
According to 02_network, eth0.1 is LAN and eth1.2 is WAN, but $mac_wan was assigned incorrectly to eth0 in preinit. Swap eth0 and eth1 to fix this. Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Diffstat (limited to 'target/linux/mvebu/base-files')
-rw-r--r--target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac b/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac
index aba8da239e..fd41836c8d 100644
--- a/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac
+++ b/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac
@@ -21,8 +21,8 @@ preinit_set_mac_address() {
mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
mac_wan=$(macaddr_setbit_la "$mac")
- ip link set dev eth1 address $mac 2>/dev/null
- ip link set dev eth0 address $mac_wan 2>/dev/null
+ ip link set dev eth0 address $mac 2>/dev/null
+ ip link set dev eth1 address $mac_wan 2>/dev/null
;;
linksys,mamba)
mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)