ipq806x: add support for TP-Link Archer VR2600v
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / etc / board.d / 02_network
index 16cc13cfc00af14c27832d9f76c000a31bb031f2..8417f0e9b767aecaf2477a7a57e38fb9f793caaa 100755 (executable)
@@ -17,7 +17,9 @@ ap148 |\
 c2600 |\
 d7800 |\
 r7500 |\
-r7800)
+r7500v2 |\
+r7800 |\
+vr2600v)
        ucidef_add_switch "switch0" \
                "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
        ;;
@@ -34,6 +36,13 @@ ea8500)
        ucidef_set_interface_macaddr "lan" "$hw_mac_addr"
        ucidef_set_interface_macaddr "wan" "$hw_mac_addr"
        ;;
+nbg6817)
+       hw_mac_addr=$(mtd_get_mac_ascii 0:APPSBLENV ethaddr)
+       ucidef_add_switch "switch0" \
+               "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
+       ucidef_set_interface_macaddr "lan" "$hw_mac_addr"
+       ucidef_set_interface_macaddr "wan" "$(macaddr_add $hw_mac_addr 1)"
+       ;;
 *)
        echo "Unsupported hardware. Network interfaces not intialized"
        ;;