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
)
20 ucidef_set_interface_lan
"eth0 eth1"
24 ucidef_set_interfaces_lan_wan
"eth0.1 eth1" "eth0.2"
25 ucidef_add_switch
"eth0" "1" "1"
26 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
27 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
28 ucidef_add_switch
"eth1" "1" "1"
29 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 4 5"
34 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
35 ucidef_add_switch
"rtl8366s" "1" "1"
36 ucidef_add_switch_vlan
"rtl8366s" "1" "0 1 2 3 5t"
40 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
41 ucidef_add_switch
"rtl8366s" "1" "1"
42 ucidef_add_switch_vlan
"rtl8366s" "0" "0 1 2 3 5"
47 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
48 ucidef_add_switch
"switch0" "1" "1"
49 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
53 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
54 ucidef_add_switch
"eth1" "1" "1"
55 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 5"
60 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
61 ucidef_add_switch
"switch0" "1" "1"
62 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
66 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
67 ucidef_add_switch
"switch0" "1" "1"
68 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
69 ucidef_add_switch
"switch1" "1" "1"
70 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
71 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
77 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
78 ucidef_add_switch
"eth0" "1" "1"
79 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
80 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
84 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
85 ucidef_add_switch
"rtl8366rb" "1" "1"
86 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
87 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
91 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
92 ucidef_add_switch
"switch0" "1" "1"
93 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
94 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
99 ucidef_set_interface_raw
"eth" "eth0"
100 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
104 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
105 ucidef_add_switch
"eth0" "1" "1"
106 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
110 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
111 ucidef_add_switch
"switch0" "1" "1"
112 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
125 ucidef_set_interface_lan
"eth0"
136 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
158 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
159 ucidef_add_switch
"eth0" "1" "1"
160 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
164 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
165 ucidef_add_switch
"eth0" "1" "1"
166 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
167 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
171 ucidef_set_interfaces_lan_wan
"eth0" "eth1"