aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/etc/board.d/02_network
diff options
context:
space:
mode:
authorDaniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>2016-06-24 15:13:12 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-06-24 15:13:12 +0200
commitedb6897598b56f8390e0aef4bfe4b6530d5aca5c (patch)
treefd1f5249d6aaf48f65d184e995362bbd15bb4bfb /target/linux/lantiq/base-files/etc/board.d/02_network
parentc18cbbde4f5ad023e4c4aa6acfc8a039d2869351 (diff)
downloadmaster-187ad058-edb6897598b56f8390e0aef4bfe4b6530d5aca5c.tar.gz
master-187ad058-edb6897598b56f8390e0aef4bfe4b6530d5aca5c.tar.bz2
master-187ad058-edb6897598b56f8390e0aef4bfe4b6530d5aca5c.zip
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/lantiq/base-files/etc/board.d/02_network')
-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 9d4be58378..a3dc80c54b 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"
;;