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
)
19 ucidef_set_interface_lan
"eth0 eth1"
23 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
24 ucidef_add_switch
"switch0" "1" "1"
25 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
29 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
30 ucidef_add_switch
"rtl8366s" "1" "1"
31 ucidef_add_switch_vlan
"rtl8366s" "1" "0 1 2 3 5t"
35 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
36 ucidef_add_switch
"rtl8366s" "1" "1"
37 ucidef_add_switch_vlan
"rtl8366s" "0" "0 1 2 3 5"
42 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
43 ucidef_add_switch
"switch0" "1" "1"
44 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
48 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
49 ucidef_add_switch
"eth1" "1" "1"
50 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 5"
55 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
56 ucidef_add_switch
"switch0" "1" "1"
57 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
61 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
62 ucidef_add_switch
"switch0" "1" "1"
63 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
64 ucidef_add_switch
"switch1" "1" "1"
65 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
66 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
72 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
73 ucidef_add_switch
"eth0" "1" "1"
74 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
75 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
79 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
80 ucidef_add_switch
"rtl8366rb" "1" "1"
81 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
82 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
86 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
87 ucidef_add_switch
"switch0" "1" "1"
88 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
89 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
94 ucidef_set_interface_raw
"eth" "eth0"
95 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
99 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
100 ucidef_add_switch
"eth0" "1" "1"
101 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
105 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
106 ucidef_add_switch
"switch0" "1" "1"
107 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
120 ucidef_set_interface_lan
"eth0"
131 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
152 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
153 ucidef_add_switch
"eth0" "1" "1"
154 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
158 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
159 ucidef_add_switch
"eth0" "1" "1"
160 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
161 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
165 ucidef_set_interfaces_lan_wan
"eth0" "eth1"