ramips : add support for Newifi D1
[openwrt/staging/mkresin.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 675dcc98323ea82aa9632ec0fddb624714697013..c8b57ca64ed3d61e349ee1c144a13692fe506f17 100755 (executable)
@@ -53,6 +53,7 @@ ramips_setup_interfaces()
        w150m|\
        widora-neo|\
        wnce2001|\
+       zbt-cpe102|\
        zte-q7)
                ucidef_add_switch "switch0"
                ucidef_add_switch_attr "switch0" "enable" "false"
@@ -177,6 +178,7 @@ ramips_setup_interfaces()
        mzk-ex300np|\
        mzk-ex750np|\
        na930|\
+       pbr-d1|\
        wli-tx4-ag300n|\
        wmr-300|\
        wrh-300cr)
@@ -206,6 +208,13 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "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"
+               ;;
        rt-n56u)
                ucidef_add_switch "switch0" \
                        "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8@eth0"
@@ -320,6 +329,10 @@ ramips_setup_macs()
                lan_mac=$(cat /sys/class/net/eth0/address)
                lan_mac=$(macaddr_add "$lan_mac" -2)
                ;;
+       newifi-d1)
+               lan_mac=$(cat /sys/class/net/eth0/address)
+               lan_mac=$(macaddr_add "$lan_mac" 2)
+               ;;
        oy-0001)
                lan_mac=$(mtd_get_mac_binary factory 40)
                wan_mac=$(mtd_get_mac_binary factory 46)