summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorDaniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>2016-05-29 15:29:08 -0700
committerJohn Crispin <john@phrozen.org>2016-05-27 16:08:47 +0200
commit492964e741f1e0254b6ed7c0a095551a31d25dc9 (patch)
tree29e62d670b54f475a115903c9326e8ae187aa69e /target/linux
parent8b321d45be868fd36c8f00166e5d077e497609e6 (diff)
downloadmtk-20170518-492964e741f1e0254b6ed7c0a095551a31d25dc9.zip
mtk-20170518-492964e741f1e0254b6ed7c0a095551a31d25dc9.tar.gz
mtk-20170518-492964e741f1e0254b6ed7c0a095551a31d25dc9.tar.bz2
lantiq: Use correct macaddr generating logic for the DGN3500
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/board.d/02_network5
1 files changed, 5 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 9d4be58..a3dc80c 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -67,6 +67,11 @@ ARV4518PWR01*)
;;
DGN3500*)
+ eth0_mac=$(mtd_get_mac_ascii uboot-env ethaddr)
+ nas0_mac=$(macaddr_add "$eth0_mac" 1)
+ ifconfig eth0 hw ether "$eth0_mac"
+ ifconfig wlan0 hw ether "$eth0_mac"
+ esi $(echo "$nas0_mac" | tr -d :)
ucidef_add_switch "switch0" \
"3:lan:1" "2:lan:2" "1:lan:3" "0:lan:4" "5t@eth0"
;;