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"
42 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
43 ucidef_add_switch
"switch0" "1" "1"
44 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
45 ucidef_add_switch_vlan
"switch0" "2" "5 6"
51 ucidef_set_interfaces_lan_wan
"eth0.1 eth1" "eth0.2"
52 ucidef_add_switch
"switch0" "1" "1"
53 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
54 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
55 ucidef_add_switch
"switch1" "1" "1"
56 ucidef_add_switch_vlan
"switch1" "1" "0 1 2 3 4 5"
61 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
62 ucidef_add_switch
"switch0" "1" "1"
63 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
67 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
68 ucidef_add_switch
"switch0" "1" "1"
69 ucidef_add_switch_vlan
"switch0" "0" "0 1 2 3 5"
74 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
75 ucidef_add_switch
"switch0" "1" "1"
76 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
80 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
81 ucidef_add_switch
"switch0" "1" "1"
82 ucidef_add_switch_vlan
"switch0" "1" "0 1 2"
86 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
87 ucidef_add_switch
"switch0" "1" "1"
88 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5"
93 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
94 ucidef_add_switch
"switch0" "1" "1"
95 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
103 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
104 ucidef_add_switch
"switch0" "1" "1"
105 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
106 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
110 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
111 ucidef_add_switch
"switch0" "1" "1"
112 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
113 ucidef_add_switch
"switch1" "1" "1"
114 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
115 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
121 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
122 ucidef_add_switch
"switch0" "1" "1"
123 ucidef_add_switch_vlan
"switch0" "1" "0t 1 3 4 5"
124 ucidef_add_switch_vlan
"switch0" "2" "0t 2"
129 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
130 ucidef_add_switch
"switch0" "1" "1"
131 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
132 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
136 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
137 ucidef_add_switch
"switch0" "1" "1"
138 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 5t"
139 ucidef_add_switch_vlan
"switch0" "2" "0 5t"
143 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
144 ucidef_add_switch
"switch0" "1" "1"
145 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
146 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
151 ucidef_set_interface_raw
"eth" "eth0"
152 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
158 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
159 ucidef_add_switch
"switch0" "1" "1"
160 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
164 ucidef_set_interface_lan
"eth0"
165 ucidef_add_switch
"switch0" "1" "1"
166 ucidef_add_switch_vlan
"switch0" "1" "0 1 2"
170 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
171 ucidef_add_switch
"switch0" "1" "1"
172 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4 5"
176 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
177 ucidef_add_switch
"switch0" "1" "1"
178 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
184 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
185 ucidef_add_switch
"switch0" "1" "1"
186 ucidef_add_switch_vlan
"switch0" "1" "0t 1 2 3 4"
187 ucidef_add_switch_vlan
"switch0" "2" "0t 5"
206 ucidef_set_interface_lan
"eth0"
218 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
244 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
245 ucidef_add_switch
"switch0" "1" "1"
246 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
250 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
251 ucidef_add_switch
"switch0" "1" "1"
252 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
253 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
257 ucidef_set_interface_lan
"eth0"
258 ucidef_add_switch
"switch0" "1" "1"
259 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3"
263 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
264 ucidef_add_switch
"switch0" "1" "1"
265 ucidef_add_switch_vlan
"switch0" "1" "0 2 3"
269 ucidef_set_interfaces_lan_wan
"eth0" "eth1"