aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorDaniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>2017-11-08 12:29:57 -0800
committerMathias Kresin <dev@kresin.me>2017-11-08 23:25:05 +0100
commita6e9d146f2bf1434f6645e72a7dc99166b5021fb (patch)
treed31e0a6f6f18d953f635b0d84fc5bfad52a3a39d /target
parentd0ef27594a8d9156e6748e890229d2daa32465fd (diff)
downloadupstream-a6e9d146f2bf1434f6645e72a7dc99166b5021fb.tar.gz
upstream-a6e9d146f2bf1434f6645e72a7dc99166b5021fb.tar.bz2
upstream-a6e9d146f2bf1434f6645e72a7dc99166b5021fb.zip
lantiq: add missing macaddr retrieval for Netgear DGN3500
The MAC addresses were not being set for LAN and WAN. This will now use the same MAC mechanism as the rest of the target. Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/board.d/02_network2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network
index 18d0ba4926..0a52f1cf6f 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -116,6 +116,8 @@ DGN1000B)
;;
DGN3500*)
+ lan_mac=$(mtd_get_mac_ascii uboot-env ethaddr)
+ wan_mac=$(macaddr_add "$lan_mac" 1)
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5t@eth0"
;;