mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-10 15:03:07 +00:00
qualcommax: ipq807x: fix mac setup for Linksys MX4200v2
Currently for Linksys MX4200v2 all u-boot ethXaddr variables share the same MAC address and there is no need to check them one by one. Signed-off-by: Paweł Owoc <frut3k7@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16070 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
dbafc95cc5
commit
f96b3383d5
@ -83,10 +83,8 @@ ipq807x_setup_macs()
|
|||||||
case "$board" in
|
case "$board" in
|
||||||
linksys,mx4200v2)
|
linksys,mx4200v2)
|
||||||
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
||||||
for i in $(seq 3 5); do
|
[ "$(mtd_get_mac_ascii u_env eth1addr)" != "$label_mac" ] && wan_mac=$label_mac
|
||||||
[ "$(mtd_get_mac_ascii u_env eth${i}addr)" != "$label_mac" ] && lan_mac=$label_mac
|
[ "$(mtd_get_mac_ascii u_env eth2addr)" != "$label_mac" ] && lan_mac=$label_mac
|
||||||
done
|
|
||||||
[ "$(mtd_get_mac_ascii u_env eth2addr)" != "$label_mac" ] && wan_mac=$label_mac
|
|
||||||
;;
|
;;
|
||||||
linksys,mx8500)
|
linksys,mx8500)
|
||||||
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user