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
"eth1" "eth0"
25 ucidef_add_switch
"switch0" "1" "1"
26 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
31 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
32 ucidef_add_switch
"rtl8366s" "1" "1"
33 ucidef_add_switch_vlan
"rtl8366s" "1" "0 1 2 3 5t"
37 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
38 ucidef_add_switch
"rtl8366s" "1" "1"
39 ucidef_add_switch_vlan
"rtl8366s" "0" "0 1 2 3 5"
44 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
45 ucidef_add_switch
"switch0" "1" "1"
46 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
50 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
51 ucidef_add_switch
"eth1" "1" "1"
52 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 5"
57 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
58 ucidef_add_switch
"switch0" "1" "1"
59 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
63 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
64 ucidef_add_switch
"switch0" "1" "1"
65 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
66 ucidef_add_switch
"switch1" "1" "1"
67 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
68 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
74 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
75 ucidef_add_switch
"eth0" "1" "1"
76 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
77 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
81 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
82 ucidef_add_switch
"rtl8366rb" "1" "1"
83 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
84 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
88 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
89 ucidef_add_switch
"switch0" "1" "1"
90 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
91 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
96 ucidef_set_interface_raw
"eth" "eth0"
97 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
101 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
102 ucidef_add_switch
"eth0" "1" "1"
103 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
107 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
108 ucidef_add_switch
"switch0" "1" "1"
109 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
122 ucidef_set_interface_lan
"eth0"
133 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
155 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
156 ucidef_add_switch
"eth0" "1" "1"
157 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
161 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
162 ucidef_add_switch
"eth0" "1" "1"
163 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
164 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
168 ucidef_set_interfaces_lan_wan
"eth0" "eth1"