Skip to content
Snippets Groups Projects
Commit 975e1357 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

ramips: fix LAN/WAN MAC address for WSR-600/1166


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

SVN-Revision: 44903
parent 1773aa51
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment