ramips: rt305x: add support for the Petatel PSR-680W Wireless CDMA Router
[openwrt.git] / target / linux / ramips / base-files / etc / uci-defaults / network
index 77b65cb3a0b830b160125215414a15e03178d7e7..bbf03344370e648bc2a60eede67acbf0489cef73 100755 (executable)
@@ -16,13 +16,15 @@ ramips_setup_interfaces()
        ucidef_set_interface_loopback
 
        case $board in
-       all0256n)
+       all0256n | \
+       wl-330n)
                ucidef_set_interface_lan "eth0.1"
                ;;
 
        argus-atp52b | \
        b2c | \
        nw718 | \
+       psr-680w | \
        sl-r7205 | \
        w502u | \
        wr6202)
@@ -31,6 +33,10 @@ ramips_setup_interfaces()
 
        f5d8235-v1 | \
        f5d8235-v2 | \
+       ur-336un)
+               ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+               ;;
+
        v11st-fe)
                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
                ucidef_add_switch "switch0" "1" "1"
@@ -53,8 +59,9 @@ ramips_setup_interfaces()
                ucidef_add_switch_vlan "switch0" "2" "4 8t"
                ;;
 
+       freestation5 | \
        wcr-150gn)
-               ucidef_set_interface_lan_wan "eth0.2" "eth0.1"
+               ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1"
                ;;
 
        wli-tx4-ag300n)
@@ -87,6 +94,7 @@ ramips_setup_macs()
        b2c | \
        f5d8235-v1 | \
        nw718 | \
+       psr-680w | \
        rt-n15 | \
        sl-r7205 | \
        wl-351)
@@ -94,6 +102,11 @@ ramips_setup_macs()
                wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1)
                ;;
 
+       w306r-v20)
+               lan_mac=$(ramips_get_mac_binary factory 4)
+               wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 5)
+               ;;
+
        dir-300-b1 |\
        dir-300-b2 |\
        dir-600-b1)
@@ -102,6 +115,11 @@ ramips_setup_macs()
                ;;
 
        esr-9753 | \
+       ur-336un)
+               lan_mac=$(ramips_get_mac_binary devdata 16388)
+               wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1)
+               ;;
+
        nbg-419n | \
        wcr-150gn)
                 lan_mac=$(ramips_get_mac_binary factory 4)