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"
30 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
31 ucidef_add_switch
"rtl8366s" "1" "1"
32 ucidef_add_switch_vlan
"rtl8366s" "1" "0 1 2 3 5t"
36 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
37 ucidef_add_switch
"rtl8366s" "1" "1"
38 ucidef_add_switch_vlan
"rtl8366s" "0" "0 1 2 3 5"
43 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
44 ucidef_add_switch
"switch0" "1" "1"
45 ucidef_add_switch_vlan
"switch0" "1" "1 2 5"
49 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
50 ucidef_add_switch
"eth1" "1" "1"
51 ucidef_add_switch_vlan
"eth1" "1" "0 1 2 3 5"
56 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
57 ucidef_add_switch
"switch0" "1" "1"
58 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
62 ucidef_set_interfaces_lan_wan
"eth0 eth1.1" "eth1.2"
63 ucidef_add_switch
"switch0" "1" "1"
64 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 4"
65 ucidef_add_switch
"switch1" "1" "1"
66 ucidef_add_switch_vlan
"switch1" "1" "0t 1 2 3 4"
67 ucidef_add_switch_vlan
"switch1" "2" "0t 5"
73 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
74 ucidef_add_switch
"eth0" "1" "1"
75 ucidef_add_switch_vlan
"eth0" "1" "0t 1 3 4 5"
76 ucidef_add_switch_vlan
"eth0" "2" "0t 2"
80 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
81 ucidef_add_switch
"rtl8366rb" "1" "1"
82 ucidef_add_switch_vlan
"rtl8366rb" "1" "1 2 3 4 5t"
83 ucidef_add_switch_vlan
"rtl8366rb" "2" "0 5t"
87 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
88 ucidef_add_switch
"switch0" "1" "1"
89 ucidef_add_switch_vlan
"switch0" "1" "1 2 3 4 9t"
90 ucidef_add_switch_vlan
"switch0" "2" "0 9t"
95 ucidef_set_interface_raw
"eth" "eth0"
96 ucidef_set_interfaces_lan_wan
"lan1 lan2 lan3 lan4" "wan"
100 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
101 ucidef_add_switch
"eth0" "1" "1"
102 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4 5"
106 ucidef_set_interfaces_lan_wan
"eth0.1" "eth1"
107 ucidef_add_switch
"switch0" "1" "1"
108 ucidef_add_switch_vlan
"switch0" "1" "0 1 2 3 5t"
121 ucidef_set_interface_lan
"eth0"
132 ucidef_set_interfaces_lan_wan
"eth1" "eth0"
154 ucidef_set_interfaces_lan_wan
"eth0" "eth1"
155 ucidef_add_switch
"eth0" "1" "1"
156 ucidef_add_switch_vlan
"eth0" "1" "0 1 2 3 4"
160 ucidef_set_interfaces_lan_wan
"eth0.1" "eth0.2"
161 ucidef_add_switch
"eth0" "1" "1"
162 ucidef_add_switch_vlan
"eth0" "1" "0t 2 3 4 5"
163 ucidef_add_switch_vlan
"eth0" "2" "0t 1"
167 ucidef_set_interfaces_lan_wan
"eth0" "eth1"