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" "eth1"
27 ucidef_add_switch
"switch0" "1" "1"
28 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
29 ucidef_add_switch_vlan
"switch0" "2" "5 6"
34 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
35 ucidef_add_switch
"switch0" "1" "1"
36 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
37 ucidef_add_switch_vlan
"switch0" "2" "5 6"
43 ucidef_set_interfaces_lan_wan
"eth0.1 eth1" "eth0.2"
44 ucidef_add_switch
"eth0" "1" "1"
45 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
46 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
47 ucidef_add_switch
"eth1" "1" "1"
48 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 4 5"
53 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
54 ucidef_add_switch
"rtl8366s" "1" "1"
55 ucidef_add_switch_vlan
"rtl8366s" "1" "0 1 2 3 5t"
59 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
60 ucidef_add_switch
"rtl8366s" "1" "1"
61 ucidef_add_switch_vlan
"rtl8366s" "0" "0 1 2 3 5"
66 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
67 ucidef_add_switch
"switch0" "1" "1"
68 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
72 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
73 ucidef_add_switch
"switch0" "1" "1"
74 ucidef_add_switch_vlan
"switch0" "1" "0 1 2"
78 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
79 ucidef_add_switch
"eth1" "1" "1"
80 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 5"
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 4"
94 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
95 ucidef_add_switch
"switch0" "1" "1"
96 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
97 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
101 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
102 ucidef_add_switch
"switch0" "1" "1"
103 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
104 ucidef_add_switch
"switch1" "1" "1"
105 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
106 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
112 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
113 ucidef_add_switch
"eth0" "1" "1"
114 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
115 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
120 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
121 ucidef_add_switch
"eth0" "1" "1"
122 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
123 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
127 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
128 ucidef_add_switch
"rtl8366rb" "1" "1"
129 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
130 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
134 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
135 ucidef_add_switch
"switch0" "1" "1"
136 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
137 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
142 ucidef_set_interface_raw
"eth" "eth0"
143 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
147 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
148 ucidef_add_switch
"switch0" "1" "1"
149 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
153 ucidef_set_interface_lan
"eth0"
154 ucidef_add_switch
"switch0" "1" "1"
155 ucidef_add_switch_vlan
"switch0" "1" "0 1 2"
159 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
160 ucidef_add_switch
"eth0" "1" "1"
161 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
165 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
166 ucidef_add_switch
"switch0" "1" "1"
167 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
171 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
172 ucidef_add_switch
"switch0" "1" "1"
173 ucidef_add_switch_vlan
"switch0" "1" "0t 1 2 3 4"
174 ucidef_add_switch_vlan
"switch0" "2" "0t 5"
191 ucidef_set_interface_lan
"eth0"
202 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
227 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
228 ucidef_add_switch
"eth0" "1" "1"
229 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
233 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
234 ucidef_add_switch
"eth0" "1" "1"
235 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
236 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
240 ucidef_set_interface_lan
"eth0"
241 ucidef_add_switch
"eth0" "1" "1"
242 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3"
246 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
247 ucidef_add_switch
"eth0" "1" "1"
248 ucidef_add_switch_vlan
"eth0" "1" "0 2 3"
252 ucidef_set_interfaces_lan_wan
"eth0" "eth1"