ramips: correct switch configuration for Newifi D1
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index c001dfe85a4dd1ca64fec6cd67d87e3a510bed18..35ce00c18528897df775e46812d6740a6d73f344 100755 (executable)
@@ -73,6 +73,7 @@ ramips_setup_interfaces()
        3g-6200n|\
        ac1200pro|\
        ai-br100|\
+       d240|\
        db-wrt01|\
        dir-300-b7|\
        dir-320-b1|\
@@ -236,11 +237,8 @@ ramips_setup_interfaces()
                        "0:lan" "4:lan" "6t@eth0"
                ;;
        newifi-d1)
-               ucidef_set_interface_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" \
-                       "0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6t@eth0" "7t@eth0"
-               ucidef_add_switch "switch1" \
-                       "4:lan" "6t@eth0" "7t@eth0"
+               "1:lan:2" "2:lan:1" "4:wan" "6@eth0"
                ;;
        rt-n56u)
                ucidef_add_switch "switch0" \