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
)
22 ucidef_set_interface_lan
"eth0 eth1"
26 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
27 ucidef_add_switch
"switch0" "1" "1"
28 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
29 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
33 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
34 ucidef_add_switch
"switch0" "1" "1"
35 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
36 ucidef_add_switch_vlan
"switch0" "2" "5 6"
41 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
42 ucidef_add_switch
"switch0" "1" "1"
43 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
44 ucidef_add_switch_vlan
"switch0" "2" "5 6"
50 ucidef_set_interfaces_lan_wan
"eth0.1 eth1" "eth0.2"
51 ucidef_add_switch
"switch0" "1" "1"
52 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
53 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
54 ucidef_add_switch
"switch1" "1" "1"
55 ucidef_add_switch_vlan
"switch1" "1" "0 1 2 3 4 5"
60 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
61 ucidef_add_switch
"switch0" "1" "1"
62 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
66 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
67 ucidef_add_switch
"switch0" "1" "1"
68 ucidef_add_switch_vlan
"switch0" "0" "0 1 2 3 5"
73 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
74 ucidef_add_switch
"switch0" "1" "1"
75 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
79 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
80 ucidef_add_switch
"switch0" "1" "1"
81 ucidef_add_switch_vlan
"switch0" "1" "0 1 2"
85 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
86 ucidef_add_switch
"switch0" "1" "1"
87 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5"
92 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
93 ucidef_add_switch
"switch0" "1" "1"
94 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
102 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
103 ucidef_add_switch
"switch0" "1" "1"
104 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
105 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
109 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
110 ucidef_add_switch
"switch0" "1" "1"
111 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
112 ucidef_add_switch
"switch1" "1" "1"
113 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
114 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
120 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
121 ucidef_add_switch
"switch0" "1" "1"
122 ucidef_add_switch_vlan
"switch0" "1" "0t 1 3 4 5"
123 ucidef_add_switch_vlan
"switch0" "2" "0t 2"
128 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
129 ucidef_add_switch
"switch0" "1" "1"
130 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
131 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
135 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
136 ucidef_add_switch
"switch0" "1" "1"
137 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 5t"
138 ucidef_add_switch_vlan
"switch0" "2" "0 5t"
142 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
143 ucidef_add_switch
"switch0" "1" "1"
144 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
145 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
150 ucidef_set_interface_raw
"eth" "eth0"
151 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
157 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
158 ucidef_add_switch
"switch0" "1" "1"
159 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
163 ucidef_set_interface_lan
"eth0"
164 ucidef_add_switch
"switch0" "1" "1"
165 ucidef_add_switch_vlan
"switch0" "1" "0 1 2"
169 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
170 ucidef_add_switch
"switch0" "1" "1"
171 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4 5"
175 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
176 ucidef_add_switch
"switch0" "1" "1"
177 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
183 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
184 ucidef_add_switch
"switch0" "1" "1"
185 ucidef_add_switch_vlan
"switch0" "1" "0t 1 2 3 4"
186 ucidef_add_switch_vlan
"switch0" "2" "0t 5"
204 ucidef_set_interface_lan
"eth0"
216 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
242 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
243 ucidef_add_switch
"switch0" "1" "1"
244 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
248 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
249 ucidef_add_switch
"switch0" "1" "1"
250 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
251 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
255 ucidef_set_interface_lan
"eth0"
256 ucidef_add_switch
"switch0" "1" "1"
257 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3"
261 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
262 ucidef_add_switch
"switch0" "1" "1"
263 ucidef_add_switch_vlan
"switch0" "1" "0 2 3"
267 ucidef_set_interfaces_lan_wan
"eth0" "eth1"