3 # Copyright (C) 2011 OpenWrt.org
6 [ -e /etc
/config
/network
] && exit 0
8 touch /etc
/config
/network
10 .
/lib
/functions
/uci-defaults.sh
13 ucidef_set_interface_loopback
15 board
=$
(ar71xx_board_name
)
20 ucidef_set_interface_lan
"eth0 eth1"
24 ucidef_set_interfaces_lan_wan
"eth0.1 eth1" "eth0.2"
25 ucidef_add_switch
"eth0" "1" "1"
26 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
27 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
28 ucidef_add_switch
"eth1" "1" "1"
29 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 4 5"
34 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
35 ucidef_add_switch
"rtl8366s" "1" "1"
36 ucidef_add_switch_vlan
"rtl8366s" "1" "0 1 2 3 5t"
40 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
41 ucidef_add_switch
"rtl8366s" "1" "1"
42 ucidef_add_switch_vlan
"rtl8366s" "0" "0 1 2 3 5"
47 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
48 ucidef_add_switch
"switch0" "1" "1"
49 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
53 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
54 ucidef_add_switch
"eth1" "1" "1"
55 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 5"
60 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
61 ucidef_add_switch
"switch0" "1" "1"
62 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
69 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
70 ucidef_add_switch
"switch0" "1" "1"
71 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
72 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
76 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
77 ucidef_add_switch
"switch0" "1" "1"
78 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
79 ucidef_add_switch
"switch1" "1" "1"
80 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
81 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
87 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
88 ucidef_add_switch
"eth0" "1" "1"
89 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
90 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
95 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
96 ucidef_add_switch
"eth0" "1" "1"
97 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
98 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
102 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
103 ucidef_add_switch
"rtl8366rb" "1" "1"
104 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
105 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
109 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
110 ucidef_add_switch
"switch0" "1" "1"
111 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
112 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
117 ucidef_set_interface_raw
"eth" "eth0"
118 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
122 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
123 ucidef_add_switch
"eth0" "1" "1"
124 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
128 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
129 ucidef_add_switch
"switch0" "1" "1"
130 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
144 ucidef_set_interface_lan
"eth0"
155 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
178 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
179 ucidef_add_switch
"eth0" "1" "1"
180 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
184 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
185 ucidef_add_switch
"eth0" "1" "1"
186 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
187 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
191 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
192 ucidef_add_switch
"eth0" "1" "1"
193 ucidef_add_switch_vlan
"eth0" "1" "0 2 3"
197 ucidef_set_interfaces_lan_wan
"eth0" "eth1"