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
|
|
|
|
|
|
|
|
case "$board_name" in
|
|
|
|
|
2014-07-12 12:31:45 +00:00
|
|
|
96348W3 |\
|
|
|
|
96358-502V |\
|
2013-06-06 22:22:20 +00:00
|
|
|
CVG834G_E15R3921 |\
|
2013-02-05 14:57:40 +00:00
|
|
|
RTA770BW |\
|
|
|
|
RTA770W |\
|
2013-01-23 10:12:40 +00:00
|
|
|
SPW500V)
|
|
|
|
ucidef_set_interface_lan "eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
96338GW |\
|
|
|
|
96338W |\
|
|
|
|
96338W2_E7T |\
|
|
|
|
96348A-122 |\
|
|
|
|
96348W3 |\
|
2014-02-22 11:16:38 +00:00
|
|
|
AR1004G |\
|
2012-05-27 13:22:14 +00:00
|
|
|
CPVA642 |\
|
|
|
|
CT536_CT5621 |\
|
2013-01-23 10:12:40 +00:00
|
|
|
CT6373-1 |\
|
2012-05-27 13:22:14 +00:00
|
|
|
D-4P-W |\
|
2012-10-21 14:35:06 +00:00
|
|
|
"F@ST2604" |\
|
2013-01-23 10:12:40 +00:00
|
|
|
RTA1320_16M |\
|
|
|
|
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"
|
|
|
|
;;
|
|
|
|
|
|
|
|
96348GW |\
|
|
|
|
96348GW-10 |\
|
|
|
|
96348GW-11 |\
|
|
|
|
96348GW-A |\
|
|
|
|
96358VW |\
|
|
|
|
96358VW2 |\
|
|
|
|
AGPF-S0 |\
|
|
|
|
"CPVA502+" |\
|
|
|
|
DV201AMR |\
|
|
|
|
DWV-S0 |\
|
|
|
|
"F@ST2404" |\
|
|
|
|
MAGIC |\
|
|
|
|
RTA1025W_16 |\
|
|
|
|
V2500V_BB)
|
|
|
|
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
|
|
|
;;
|
|
|
|
|
2013-01-23 10:12:40 +00:00
|
|
|
AW4139 |\
|
2013-06-24 20:35:54 +00:00
|
|
|
AW4339U |\
|
2014-07-12 12:31:39 +00:00
|
|
|
HW553 |\
|
2013-01-23 10:12:40 +00:00
|
|
|
HW556*)
|
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"
|
|
|
|
;;
|
|
|
|
|
2013-01-23 10:12:40 +00:00
|
|
|
NB4-* |\
|
2012-05-27 13:22:14 +00:00
|
|
|
DVG3810BN)
|
|
|
|
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"
|
|
|
|
;;
|
|
|
|
|
2013-01-23 10:12:40 +00:00
|
|
|
96328avng |\
|
|
|
|
96328A-1241N |\
|
|
|
|
96328A-1441N1 |\
|
|
|
|
963281TAN |\
|
|
|
|
963281T_TEF |\
|
2014-07-27 17:44:45 +00:00
|
|
|
96368M-1541N |\
|
2014-02-22 11:16:33 +00:00
|
|
|
96368MVNgr |\
|
2014-02-22 11:16:42 +00:00
|
|
|
"F@ST2504n" |\
|
2014-02-22 11:16:33 +00:00
|
|
|
"F@ST2704V2")
|
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"
|
|
|
|
;;
|
|
|
|
|
|
|
|
96368MVWG)
|
|
|
|
ucidef_set_interface_lan "eth0.1"
|
|
|
|
ucidef_add_switch "eth0" "1" "1"
|
|
|
|
ucidef_add_switch_vlan "eth0" "1" "1 2 4 5 8t"
|
|
|
|
;;
|
|
|
|
|
2014-06-30 13:34:34 +00:00
|
|
|
96369R-1231N)
|
|
|
|
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"
|
|
|
|
;;
|
|
|
|
|
2013-01-23 10:12:40 +00:00
|
|
|
NB6)
|
|
|
|
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"
|
|
|
|
;;
|
|
|
|
|
2014-02-22 11:16:46 +00:00
|
|
|
VW6339GU)
|
|
|
|
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"
|
|
|
|
;;
|
|
|
|
|
2014-02-22 11:16:48 +00:00
|
|
|
963268BU_P300)
|
|
|
|
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
|