Revert "lantiq: Use correct macaddr generating logic for the DGN3500"
[openwrt/staging/wigyori.git] / target / linux / lantiq / base-files / etc / board.d / 02_network
index a3dc80c54b16d31e3950c3881e3d4f202ea205a2..cafcb0e00972829329e52d75fb86bb48df071dd9 100755 (executable)
@@ -67,15 +67,15 @@ 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"
        ;;
 
+FRITZ7360SL)
+       ucidef_add_switch "switch0" \
+               "4:lan:1" "2:lan:2" "0:lan:3" "1:lan:4" "6t@eth0"
+       ;;
+
 GR7000)
        ucidef_set_interface_wan "eth0"
        ;;
@@ -145,6 +145,16 @@ VGV7510KW22)
        ucidef_add_switch "switch0" \
                "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "6t@eth0"
        ;;
+*)
+       ucidef_set_interface_lan 'eth0'
+       ;;
+
+WBMR300)
+       lan_mac=$(mtd_get_mac_ascii ubootconfig ethaddr)
+       wan_mac="$lan_mac"
+       ucidef_add_switch "switch0" \
+               "2:lan:1" "3:lan:2" "5:lan:3" "4:wan:1" "6t@eth0"
+       ;;
 
 esac