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"
27 ucidef_set_interfaces_lan_wan
"eth0.1 eth1" "eth0.2"
28 ucidef_add_switch
"eth0" "1" "1"
29 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
30 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
31 ucidef_add_switch
"eth1" "1" "1"
32 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 4 5"
39 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
40 ucidef_add_switch
"rtl8366s" "1" "1"
41 ucidef_add_switch_vlan
"rtl8366s" "1" "0 1 2 3 5t"
45 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
46 ucidef_add_switch
"rtl8366s" "1" "1"
47 ucidef_add_switch_vlan
"rtl8366s" "0" "0 1 2 3 5"
52 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
53 ucidef_add_switch
"switch0" "1" "1"
54 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
58 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
59 ucidef_add_switch
"eth1" "1" "1"
60 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 5"
65 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
66 ucidef_add_switch
"switch0" "1" "1"
67 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
74 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
75 ucidef_add_switch
"switch0" "1" "1"
76 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
77 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
81 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
82 ucidef_add_switch
"switch0" "1" "1"
83 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
84 ucidef_add_switch
"switch1" "1" "1"
85 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
86 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
92 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
93 ucidef_add_switch
"eth0" "1" "1"
94 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
95 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
100 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
101 ucidef_add_switch
"eth0" "1" "1"
102 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
103 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
107 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
108 ucidef_add_switch
"rtl8366rb" "1" "1"
109 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
110 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
114 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
115 ucidef_add_switch
"switch0" "1" "1"
116 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
117 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
122 ucidef_set_interface_raw
"eth" "eth0"
123 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
127 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
128 ucidef_add_switch
"eth0" "1" "1"
129 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
133 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
134 ucidef_add_switch
"switch0" "1" "1"
135 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
150 ucidef_set_interface_lan
"eth0"
161 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
185 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
186 ucidef_add_switch
"eth0" "1" "1"
187 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
191 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
192 ucidef_add_switch
"eth0" "1" "1"
193 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
194 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
198 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
199 ucidef_add_switch
"eth0" "1" "1"
200 ucidef_add_switch_vlan
"eth0" "1" "0 2 3"
204 ucidef_set_interfaces_lan_wan
"eth0" "eth1"