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"
67 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
68 ucidef_add_switch
"switch0" "1" "1"
69 ucidef_add_switch_vlan
"switch0" "1" "0t 2 3 4 5"
70 ucidef_add_switch_vlan
"switch0" "2" "0t 1"
74 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
75 ucidef_add_switch
"switch0" "1" "1"
76 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
77 ucidef_add_switch
"switch1" "1" "1"
78 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
79 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
85 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
86 ucidef_add_switch
"eth0" "1" "1"
87 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
88 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
92 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
93 ucidef_add_switch
"rtl8366rb" "1" "1"
94 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
95 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
99 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
100 ucidef_add_switch
"switch0" "1" "1"
101 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
102 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
107 ucidef_set_interface_raw
"eth" "eth0"
108 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
112 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
113 ucidef_add_switch
"eth0" "1" "1"
114 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
118 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
119 ucidef_add_switch
"switch0" "1" "1"
120 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
133 ucidef_set_interface_lan
"eth0"
144 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
166 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
167 ucidef_add_switch
"eth0" "1" "1"
168 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
172 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
173 ucidef_add_switch
"eth0" "1" "1"
174 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
175 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
179 ucidef_set_interfaces_lan_wan
"eth0" "eth1"