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
)
21 ucidef_set_interface_lan
"eth0 eth1"
25 ucidef_set_interfaces_lan_wan
"eth0.1 eth1" "eth0.2"
26 ucidef_add_switch
"eth0" "1" "1"
27 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
28 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
29 ucidef_add_switch
"eth1" "1" "1"
30 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 4 5"
35 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
36 ucidef_add_switch
"rtl8366s" "1" "1"
37 ucidef_add_switch_vlan
"rtl8366s" "1" "0 1 2 3 5t"
41 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
42 ucidef_add_switch
"rtl8366s" "1" "1"
43 ucidef_add_switch_vlan
"rtl8366s" "0" "0 1 2 3 5"
48 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
49 ucidef_add_switch
"switch0" "1" "1"
50 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
54 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
55 ucidef_add_switch
"eth1" "1" "1"
56 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 5"
61 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
62 ucidef_add_switch
"switch0" "1" "1"
63 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
70 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
71 ucidef_add_switch
"switch0" "1" "1"
72 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
73 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
77 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
78 ucidef_add_switch
"switch0" "1" "1"
79 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
80 ucidef_add_switch
"switch1" "1" "1"
81 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
82 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
88 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
89 ucidef_add_switch
"eth0" "1" "1"
90 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
91 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
96 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
97 ucidef_add_switch
"eth0" "1" "1"
98 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
99 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
103 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
104 ucidef_add_switch
"rtl8366rb" "1" "1"
105 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
106 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
110 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
111 ucidef_add_switch
"switch0" "1" "1"
112 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
113 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
118 ucidef_set_interface_raw
"eth" "eth0"
119 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
123 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
124 ucidef_add_switch
"eth0" "1" "1"
125 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
129 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
130 ucidef_add_switch
"switch0" "1" "1"
131 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
146 ucidef_set_interface_lan
"eth0"
157 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
181 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
182 ucidef_add_switch
"eth0" "1" "1"
183 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
187 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
188 ucidef_add_switch
"eth0" "1" "1"
189 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
190 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
194 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
195 ucidef_add_switch
"eth0" "1" "1"
196 ucidef_add_switch_vlan
"eth0" "1" "0 2 3"
200 ucidef_set_interfaces_lan_wan
"eth0" "eth1"