3 # Copyright (C) 2012 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
23 ucidef_set_interface_lan "eth0"
39 ucidef_set_interface_lan "eth0"
40 ucidef_add_switch "eth0" "1" "1"
41 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
58 ucidef_set_interfaces_lan_wan "eth1" "eth0"
59 ucidef_add_switch "eth1" "1" "1"
60 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5"
66 ucidef_set_interface_lan "eth0.1"
67 ucidef_add_switch "eth0" "1" "1"
68 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
74 ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
75 ucidef_add_switch "eth1" "1" "1"
76 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
93 ucidef_set_interface_lan "eth0.1"
94 ucidef_add_switch "eth0" "1" "1"
95 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 8t"
99 ucidef_set_interface_lan "eth0.1"
100 ucidef_add_switch "eth0" "1" "1"
101 ucidef_add_switch_vlan "eth0" "1" "1 2 4 5 8t"
105 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
106 ucidef_add_switch "eth0" "1" "1"
107 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 5t"
108 ucidef_add_switch_vlan "eth0" "2" "4 5t"
112 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
113 ucidef_add_switch "eth0" "1" "1"
114 ucidef_add_switch_vlan "eth0" "1" "1 2 3 4 8t"
115 ucidef_add_switch_vlan "eth0" "2" "0 8t"
119 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
120 ucidef_add_switch "switch0" "1" "1"
121 ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
122 ucidef_add_switch_vlan "switch0" "2" "0 9t"
126 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
127 ucidef_add_switch "switch0" "1" "1"
128 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 8t"
129 ucidef_add_switch_vlan "switch0" "2" "4 8t"
133 ucidef_set_interface_lan "eth0.1"
134 ucidef_add_switch "switch0" "1" "1"
135 ucidef_add_switch_vlan "switch0" "1" "0 3 4 5 6 7 8t"
139 ucidef_set_interfaces_lan_wan "eth1" "eth0"