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"
26 ucidef_set_interfaces_lan_wan
"eth0.1 eth1" "eth0.2"
27 ucidef_add_switch
"eth0" "1" "1"
28 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
29 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
30 ucidef_add_switch
"eth1" "1" "1"
31 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 4 5"
38 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
39 ucidef_add_switch
"rtl8366s" "1" "1"
40 ucidef_add_switch_vlan
"rtl8366s" "1" "0 1 2 3 5t"
44 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
45 ucidef_add_switch
"rtl8366s" "1" "1"
46 ucidef_add_switch_vlan
"rtl8366s" "0" "0 1 2 3 5"
51 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
52 ucidef_add_switch
"switch0" "1" "1"
53 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
57 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
58 ucidef_add_switch
"eth1" "1" "1"
59 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 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 3 4"
73 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
74 ucidef_add_switch
"switch0" "1" "1"
75 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
76 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
80 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
81 ucidef_add_switch
"switch0" "1" "1"
82 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
83 ucidef_add_switch
"switch1" "1" "1"
84 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
85 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
91 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
92 ucidef_add_switch
"eth0" "1" "1"
93 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
94 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
99 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
100 ucidef_add_switch
"eth0" "1" "1"
101 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
102 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
106 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
107 ucidef_add_switch
"rtl8366rb" "1" "1"
108 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
109 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
113 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
114 ucidef_add_switch
"switch0" "1" "1"
115 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
116 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
121 ucidef_set_interface_raw
"eth" "eth0"
122 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
126 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
127 ucidef_add_switch
"eth0" "1" "1"
128 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
132 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
133 ucidef_add_switch
"switch0" "1" "1"
134 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
149 ucidef_set_interface_lan
"eth0"
160 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
184 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
185 ucidef_add_switch
"eth0" "1" "1"
186 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
190 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
191 ucidef_add_switch
"eth0" "1" "1"
192 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
193 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
197 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
198 ucidef_add_switch
"eth0" "1" "1"
199 ucidef_add_switch_vlan
"eth0" "1" "0 2 3"
203 ucidef_set_interfaces_lan_wan
"eth0" "eth1"