lantiq: Use correct macaddr generating logic for the DGN3500
authorDaniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Sun, 29 May 2016 22:29:08 +0000 (15:29 -0700)
committerJohn Crispin <john@phrozen.org>
Fri, 27 May 2016 14:08:47 +0000 (16:08 +0200)
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
target/linux/lantiq/base-files/etc/board.d/02_network

index 9d4be583784433e38f9bd63394d1699c58c9fbb7..a3dc80c54b16d31e3950c3881e3d4f202ea205a2 100755 (executable)
@@ -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"
        ;;