2012-05-27 13:22:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2012 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
[ -e /etc/config/network ] && exit 0
|
|
|
|
|
|
|
|
touch /etc/config/network
|
|
|
|
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
. /lib/brcm63xx.sh
|
|
|
|
|
|
|
|
ucidef_set_interface_loopback
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
case "$(brcm63xx_board_name)" in
|
|
|
|
|
|
|
|
cvg834g |\
|
|
|
|
rta770bw |\
|
|
|
|
rta770w |\
|
|
|
|
spw303v |\
|
|
|
|
spw500v)
|
2013-01-23 10:12:40 +00:00
|
|
|
ucidef_set_interface_lan "eth0"
|
|
|
|
;;
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
ar1004g |\
|
|
|
|
bcm96338gw |\
|
|
|
|
bcm96338w |\
|
|
|
|
cpva642 |\
|
|
|
|
ct-5365 |\
|
|
|
|
ct-536p_5621t |\
|
|
|
|
ct-6373 |\
|
|
|
|
dg834g_v4 |\
|
|
|
|
dsl-2640b-b |\
|
|
|
|
dsl-2640u |\
|
|
|
|
fast2604 |\
|
|
|
|
rta1320 |\
|
|
|
|
v2110)
|
2012-05-27 13:22:14 +00:00
|
|
|
ucidef_set_interface_lan "eth0"
|
2013-01-23 10:12:40 +00:00
|
|
|
ucidef_add_switch "eth0" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
|
|
|
|
;;
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
agpf-s0 |\
|
|
|
|
bcm96348gw |\
|
|
|
|
bcm96348gw-10 |\
|
|
|
|
bcm96348gw-11 |\
|
|
|
|
bcm96358vw |\
|
|
|
|
bcm96358vw2 |\
|
|
|
|
cpva502p |\
|
|
|
|
dg834gt |\
|
|
|
|
dmv-s0 |\
|
|
|
|
dsl-2650u |\
|
|
|
|
dv-201amr |\
|
|
|
|
f5d7633 |\
|
|
|
|
fast2404 |\
|
|
|
|
magic |\
|
|
|
|
rg100a |\
|
|
|
|
rta1025W |\
|
|
|
|
td-w8900gb |\
|
|
|
|
usr9108 |\
|
|
|
|
v2500v_bb)
|
2013-01-23 10:12:40 +00:00
|
|
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
|
|
|
ucidef_add_switch "eth1" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5"
|
2012-05-27 13:22:14 +00:00
|
|
|
;;
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
dsl-274xb-c |\
|
|
|
|
hg553 |\
|
2015-03-25 15:35:12 +00:00
|
|
|
hg556a_* |\
|
|
|
|
homehub2a)
|
2012-05-27 13:22:17 +00:00
|
|
|
ucidef_set_interface_lan "eth0.1"
|
|
|
|
ucidef_add_switch "eth0" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
|
|
|
|
;;
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
dva-g3810bn |\
|
|
|
|
hg520 |\
|
|
|
|
neufbox4)
|
2012-05-27 13:22:14 +00:00
|
|
|
ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
|
|
|
|
ucidef_add_switch "eth1" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
|
|
|
|
;;
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
a4001n1 |\
|
|
|
|
a4001n |\
|
|
|
|
ar-5381u |\
|
|
|
|
ar-5387un |\
|
|
|
|
bcm963281tan |\
|
|
|
|
bcm96328avng |\
|
|
|
|
bcm96368mvngr |\
|
|
|
|
dsl-274xb-f |\
|
|
|
|
dsl-275xb-d |\
|
|
|
|
fast2504n |\
|
|
|
|
fast2704v2 |\
|
2015-05-21 19:31:54 +00:00
|
|
|
hg655b |\
|
2015-03-16 11:52:42 +00:00
|
|
|
p870hw-51a_v2 |\
|
|
|
|
vr-3025un |\
|
|
|
|
vr-3025u)
|
2013-01-23 10:12:40 +00:00
|
|
|
ucidef_set_interface_lan "eth0.1"
|
|
|
|
ucidef_add_switch "eth0" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 8t"
|
|
|
|
;;
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
bcm96368mvwg)
|
2013-01-23 10:12:40 +00:00
|
|
|
ucidef_set_interface_lan "eth0.1"
|
|
|
|
ucidef_add_switch "eth0" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "eth0" "1" "1 2 4 5 8t"
|
|
|
|
;;
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
wap-5831n)
|
2014-06-30 13:34:34 +00:00
|
|
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
|
|
|
ucidef_add_switch "eth0" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 5t"
|
|
|
|
ucidef_add_switch_vlan "eth0" "2" "4 5t"
|
|
|
|
;;
|
|
|
|
|
2015-08-05 13:55:37 +00:00
|
|
|
fast2704n |\
|
2015-03-16 11:52:42 +00:00
|
|
|
dgnd3700v1_dgnd3800b)
|
2015-03-16 11:52:10 +00:00
|
|
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
|
|
|
ucidef_add_switch "eth0" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "eth0" "1" "1 2 3 4 8t"
|
|
|
|
ucidef_add_switch_vlan "eth0" "2" "0 8t"
|
|
|
|
;;
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
neufbox6)
|
2013-01-23 10:12:40 +00:00
|
|
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
|
|
|
ucidef_add_switch "switch0" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
|
|
|
|
ucidef_add_switch_vlan "switch0" "2" "0 9t"
|
|
|
|
;;
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
vg50)
|
2014-02-22 11:16:46 +00:00
|
|
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
|
|
|
ucidef_add_switch "switch0" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 8t"
|
|
|
|
ucidef_add_switch_vlan "switch0" "2" "4 8t"
|
|
|
|
;;
|
|
|
|
|
2015-03-16 11:52:42 +00:00
|
|
|
bcm963268bu_p300)
|
2014-02-22 11:16:48 +00:00
|
|
|
ucidef_set_interface_lan "eth0.1"
|
|
|
|
ucidef_add_switch "switch0" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "switch0" "1" "0 3 4 5 6 7 8t"
|
|
|
|
;;
|
|
|
|
|
2012-05-27 13:22:14 +00:00
|
|
|
*)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
uci commit network
|
|
|
|
|
|
|
|
exit 0
|