base-files: add a hardware detection layer
[openwrt/staging/yousong.git] / target / linux / ramips / base-files / etc / uci-defaults / 02_network
index f65388f6134f5e767d68726fc45521abb0b167a2..95e728cec7290b619c849824e13eb4f0dd2749e8 100755 (executable)
@@ -51,6 +51,11 @@ ramips_setup_interfaces()
                ;;
 
        3g-6200nl | \
+       mlw221)
+                ucidef_set_interface_lan "eth0.2"
+                ;;
+
+       wizard8800 | \
        wl-330n | \
        wmr300)
                ucidef_set_interface_lan "eth0.1"
@@ -159,6 +164,12 @@ ramips_setup_interfaces()
                ucidef_add_switch_vlan "switch0" "2" "0t 5"
                ;;
 
+       vocore)
+               ucidef_set_interface_lan "eth0.1"
+               ucidef_add_switch "switch0" "1" "1"
+               ucidef_add_switch_vlan "switch0" "1" "0 4 6t"
+               ;;
+
        wcr-150gn)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" "1" "1"
@@ -173,6 +184,13 @@ ramips_setup_interfaces()
                ucidef_add_switch_vlan "switch0" "2" "4 6t"
                ;;
 
+       y1 |\
+       y1s)
+               ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+               ucidef_add_switch "switch0" "1" "1"
+               ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5 6t"
+               ucidef_add_switch_vlan "switch0" "2" "0 6t"
+               ;;
        d105 | \
        na930 | \
        omni-emb-hpm|\
@@ -238,7 +256,9 @@ ramips_setup_macs()
        dir-300-b7 | \
        dir-320-b1 | \
        psr-680w |\
-       sl-r7205)
+       sl-r7205 |\
+       y1 |\
+       y1s)
                lan_mac=$(cat /sys/class/net/eth0/address)
                lan_mac=$(macaddr_setbit_la "$lan_mac")
                wan_mac=$(macaddr_add "$lan_mac" 1)