ralink: add support for wrtnode
[openwrt/svn-archive/archive.git] / target / linux / ramips / base-files / etc / uci-defaults / 02_network
index 79ad4b885f6abceee6e466395b813f223180c51e..1cbf7bf0224dd193b633e9edde7e5e04aa165d8c 100755 (executable)
@@ -56,7 +56,6 @@ ramips_setup_interfaces()
                ;;
 
        3g-6200n | \
-       argus-atp52b | \
        b2c | \
        nw718 | \
        psr-680w | \
@@ -66,23 +65,24 @@ ramips_setup_interfaces()
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ;;
 
-       asl26555)
-               ucidef_set_interface_lan "eth0.1"
+       br-6475nd)
+               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 6t"
+               ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
+               ucidef_add_switch_vlan "switch0" "2" "0 9t"
                ;;
 
-       dir-645)
-               ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+       asl26555)
+               ucidef_set_interface_lan "eth0.1"
                ucidef_add_switch "switch0" "1" "1"
                ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
-               ucidef_add_switch_vlan "switch0" "2" "0 6t"
                ;;
 
        dir-610-a1 | \
        dir-300-b7 | \
        dir-320-b1 | \
        dir-615-h1 | \
+       hlk-rm04 | \
        mzk-w300nh2)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" "1" "1"
@@ -90,9 +90,13 @@ ramips_setup_interfaces()
                ucidef_add_switch_vlan "switch0" "2" "4 6t"
                ;;
 
+       argus-atp52b | \
+       dir-645 | \
        f5d8235-v1 | \
        f5d8235-v2 | \
        hg255d | \
+       rt-n14u | \
+       wrtnode | \
        ur-326n4g)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" "1" "1"
@@ -136,10 +140,14 @@ ramips_setup_interfaces()
                ;;
 
        wcr-150gn)
-               ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1"
+               ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+               ucidef_add_switch "switch0" "1" "1"
+               ucidef_add_switch_vlan "switch0" "1" "0 6t"
+               ucidef_add_switch_vlan "switch0" "2" "6t"
                ;;
 
        d105 | \
+       na930 | \
        omni-emb-hpm|\
        wli-tx4-ag300n)
                ucidef_set_interface_lan "eth0"
@@ -167,6 +175,11 @@ ramips_setup_macs()
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
 
+       br-6475nd)
+               lan_mac=$(mtd_get_mac_binary devdata 13)
+               wan_mac=$(mtd_get_mac_binary devdata 7)
+               ;;
+
        w306r-v20)
                wan_mac=$(macaddr_add "$lan_mac" 5)
                ;;