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
15 case "$(brcm63xx_board_name)" in
22 ucidef_set_interface_lan "eth0"
38 ucidef_set_interface_lan "eth0"
39 ucidef_add_switch "eth0" "1" "1"
40 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
62 ucidef_set_interfaces_lan_wan "eth1" "eth0"
63 ucidef_add_switch "eth1" "1" "1"
64 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5"
70 ucidef_set_interface_lan "eth0.1"
71 ucidef_add_switch "eth0" "1" "1"
72 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
78 ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
79 ucidef_add_switch "eth1" "1" "1"
80 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
97 ucidef_set_interface_lan "eth0.1"
98 ucidef_add_switch "eth0" "1" "1"
99 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 8t"
103 ucidef_set_interface_lan "eth0.1"
104 ucidef_add_switch "eth0" "1" "1"
105 ucidef_add_switch_vlan "eth0" "1" "1 2 4 5 8t"
109 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
110 ucidef_add_switch "eth0" "1" "1"
111 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 5t"
112 ucidef_add_switch_vlan "eth0" "2" "4 5t"
115 dgnd3700v1_dgnd3800b)
116 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
117 ucidef_add_switch "eth0" "1" "1"
118 ucidef_add_switch_vlan "eth0" "1" "1 2 3 4 8t"
119 ucidef_add_switch_vlan "eth0" "2" "0 8t"
123 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
124 ucidef_add_switch "switch0" "1" "1"
125 ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
126 ucidef_add_switch_vlan "switch0" "2" "0 9t"
130 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
131 ucidef_add_switch "switch0" "1" "1"
132 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 8t"
133 ucidef_add_switch_vlan "switch0" "2" "4 8t"
137 ucidef_set_interface_lan "eth0.1"
138 ucidef_add_switch "switch0" "1" "1"
139 ucidef_add_switch_vlan "switch0" "1" "0 3 4 5 6 7 8t"
143 ucidef_set_interfaces_lan_wan "eth1" "eth0"