From 492964e741f1e0254b6ed7c0a095551a31d25dc9 Mon Sep 17 00:00:00 2001 From: Daniel Gimpelevich Date: Sun, 29 May 2016 15:29:08 -0700 Subject: [PATCH] lantiq: Use correct macaddr generating logic for the DGN3500 Signed-off-by: Daniel Gimpelevich --- target/linux/lantiq/base-files/etc/board.d/02_network | 5 +++++ 1 file changed, 5 insertions(+) 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" ;; -- 2.30.2