lantiq: add support for ZTE H201L
[openwrt/openwrt.git] / target / linux / lantiq / base-files / etc / uci-defaults / 02_network
old mode 100755 (executable)
new mode 100644 (file)
index 1eadb56..a5cf212
@@ -21,6 +21,10 @@ set network.wan.ifname='nas0'
 set network.wan.proto='pppoe'
 set network.wan.username='foo'
 set network.wan.password='bar'
+set network.wan.ipv6='1'
+set network.wan6='interface'
+set network.wan6.ifname='@wan'
+set network.wan6.proto='dhcpv6'
 EOF
 }
 
@@ -54,10 +58,10 @@ ACMP252|GIGASX76X)
        ;;
 
 # ar8316
-ARV4519PW|ARV7518PW)
+ARV4519PW|ARV7518PW|ARV752DPW22)
        ucidef_set_interface_lan "eth0.1"
-       ucidef_add_switch "eth0" "1" "1"
-       ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
+       ucidef_add_switch "switch0" "1" "1"
+       ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5"
        ;;
 
 WBMR)
@@ -65,6 +69,27 @@ WBMR)
        ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
        ;;
 
+VG3503J)
+       ucidef_set_interface_lan 'eth0'
+       uci set network.lan.type='none'
+       ;;
+
+DGN3500*)
+       ucidef_set_interface_lan "eth0.1"
+       ucidef_add_switch "switch0" "1" "1"
+       ucidef_add_switch_vlan "switch0" "1" "3 2 1 0 5t"
+       ;;
+
+GR7000)
+       ucidef_set_interface_wan "eth0"
+       uci set network.lan.ifname=''
+       ;;
+
+H201L)
+       ucidef_set_interface_lan "eth0.1"
+       ucidef_add_switch "switch0" "1" "1"
+       ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4t"
+       ;;
 esac
 
 [ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] || set_atm_wan "$vpi" "$vci" "$encaps" "$payload"