ralink: add mt7620n support
[openwrt/svn-archive/archive.git] / target / linux / ramips / base-files / etc / uci-defaults / 02_network
index 9c1936e571f35ea1f304b26a9777a03443875975..8ac2a4f7e4ce4eb350c4f98d04f01d6f91d7fe25 100755 (executable)
@@ -13,7 +13,6 @@ ramips_setup_rt3x5x_vlans()
        fi
        local wanports=""
        local lanports=""
-       swconfig dev rt305x set reset 1
        for port in 5 4 3 2 1 0; do
                if [ `swconfig dev rt305x port $port get disable` = "1" ]; then
                        continue
@@ -41,13 +40,18 @@ ramips_setup_interfaces()
        w150m | \
        all0256n | \
        all5002 | \
-       broadway)
+       all5003 | \
+       awm002-evb | \
+       broadway | \
+       dcs-930| \
+       wnce2001)
                ucidef_add_switch "switch0" "1" "0"
                ucidef_set_interface_lan "eth0"
                ;;
 
        3g-6200nl | \
-       wl-330n)
+       wl-330n | \
+       wmr330)
                ucidef_set_interface_lan "eth0.1"
                ;;
 
@@ -62,6 +66,12 @@ ramips_setup_interfaces()
                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"
+               ;;
+
        dir-645)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" "1" "1"
@@ -69,6 +79,9 @@ ramips_setup_interfaces()
                ucidef_add_switch_vlan "switch0" "2" "0 6t"
                ;;
 
+       dir-610-a1 | \
+       dir-300-b7 | \
+       dir-320-b1 | \
        dir-615-h1 | \
        mzk-w300nh2)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
@@ -79,6 +92,7 @@ ramips_setup_interfaces()
 
        f5d8235-v1 | \
        f5d8235-v2 | \
+       hg255d | \
        ur-326n4g)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" "1" "1"
@@ -121,7 +135,6 @@ ramips_setup_interfaces()
                ucidef_add_switch_vlan "switch0" "2" "0t 5"
                ;;
 
-       freestation5 | \
        wcr-150gn)
                ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1"
                ;;
@@ -132,6 +145,11 @@ ramips_setup_interfaces()
                ucidef_set_interface_lan "eth0"
                ;;
 
+       whr-300hp2 |\
+       whr-600d)
+               ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+               ;;
+       
        *)
                RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
                if [ -n "${RT3X5X}" ]; then
@@ -163,7 +181,13 @@ ramips_setup_macs()
        bc2 | \
        br6425 | \
        broadway | \
+       dir-620-d1 | \
        f5d8235-v1 | \
+       ip2202 | \
+       mpr-a1 | \
+       mpr-a2 | \
+       dir-300-b7 | \
+       dir-320-b1 | \
        mzk-w300nh2 | \
        nw718 | \
        psr-680w | \
@@ -174,20 +198,27 @@ ramips_setup_macs()
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
 
+       asl26555)
+               lan_mac=$(mtd_get_mac_binary devdata 16388)
+               ;;
+
        w306r-v20)
                lan_mac=$(mtd_get_mac_binary factory 4)
                wan_mac=$(macaddr_add "$lan_mac" 5)
                ;;
 
        rt-n13u | \
-       fonera20n)
+       hg255d  | \
+       fonera20n | \
+       dir-810l)
                lan_mac=$(mtd_get_mac_binary factory 40)
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
 
        dir-300-b1 |\
        dir-300-b2 |\
-       dir-600-b1)
+       dir-600-b1 |\
+       dir-610-a1)
                lan_mac=$(mtd_get_mac_binary devdata 16388)
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
@@ -210,6 +241,14 @@ ramips_setup_macs()
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
 
+       m3 |\
+       m4 |\
+       x5 |\
+       x8)
+               lan_mac=$(mtd_get_mac_binary factory 4)
+               lan_mac=$(macaddr_add "$lan_mac" -1)
+               ;;
+
        nbg-419n | \
        wcr-150gn)
                 lan_mac=$(mtd_get_mac_binary factory 4)
@@ -242,7 +281,9 @@ ramips_setup_macs()
 
        all0239-3g | \
        carambola | \
-       w502u)
+       freestation5 | \
+       w502u | \
+       wnce2001)
                lan_mac=$(mtd_get_mac_binary factory 40)
                wan_mac=$(mtd_get_mac_binary factory 46)
                ;;