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"
35 ucidef_set_interfaces_lan_wan
"eth0.1 eth1" "eth0.2"
36 ucidef_add_switch
"eth0" "1" "1"
37 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
38 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
39 ucidef_add_switch
"eth1" "1" "1"
40 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 4 5"
45 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
46 ucidef_add_switch
"rtl8366s" "1" "1"
47 ucidef_add_switch_vlan
"rtl8366s" "1" "0 1 2 3 5t"
51 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
52 ucidef_add_switch
"rtl8366s" "1" "1"
53 ucidef_add_switch_vlan
"rtl8366s" "0" "0 1 2 3 5"
58 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
59 ucidef_add_switch
"switch0" "1" "1"
60 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
64 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
65 ucidef_add_switch
"switch0" "1" "1"
66 ucidef_add_switch_vlan
"switch0" "1" "0 1 2"
70 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
71 ucidef_add_switch
"eth1" "1" "1"
72 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 5"
77 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
78 ucidef_add_switch
"switch0" "1" "1"
79 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
86 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
87 ucidef_add_switch
"switch0" "1" "1"
88 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
89 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
93 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
94 ucidef_add_switch
"switch0" "1" "1"
95 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
96 ucidef_add_switch
"switch1" "1" "1"
97 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
98 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
104 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
105 ucidef_add_switch
"eth0" "1" "1"
106 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
107 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
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 2 3 4 5"
115 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
119 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
120 ucidef_add_switch
"rtl8366rb" "1" "1"
121 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
122 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
126 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
127 ucidef_add_switch
"switch0" "1" "1"
128 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
129 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
134 ucidef_set_interface_raw
"eth" "eth0"
135 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
139 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
140 ucidef_add_switch
"switch0" "1" "1"
141 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
145 ucidef_set_interface_lan
"eth0"
146 ucidef_add_switch
"switch0" "1" "1"
147 ucidef_add_switch_vlan
"switch0" "1" "0 1 2"
151 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
152 ucidef_add_switch
"eth0" "1" "1"
153 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
157 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
158 ucidef_add_switch
"switch0" "1" "1"
159 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
163 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
164 ucidef_add_switch
"switch0" "1" "1"
165 ucidef_add_switch_vlan
"switch0" "1" "0t 1 2 3 4"
166 ucidef_add_switch_vlan
"switch0" "2" "0t 5"
183 ucidef_set_interface_lan
"eth0"
194 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
219 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
220 ucidef_add_switch
"eth0" "1" "1"
221 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
225 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
226 ucidef_add_switch
"eth0" "1" "1"
227 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
228 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
232 ucidef_set_interface_lan
"eth0"
233 ucidef_add_switch
"eth0" "1" "1"
234 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3"
238 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
239 ucidef_add_switch
"eth0" "1" "1"
240 ucidef_add_switch_vlan
"eth0" "1" "0 2 3"
244 ucidef_set_interfaces_lan_wan
"eth0" "eth1"