You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
856 B
60 lines
856 B
13 years ago
|
#!/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
|
||
|
|
||
13 years ago
|
96328avng |\
|
||
12 years ago
|
96328A-1241N |\
|
||
12 years ago
|
96328A-1441N1 |\
|
||
13 years ago
|
963281TAN |\
|
||
12 years ago
|
963281T_TEF |\
|
||
13 years ago
|
96348A-122 |\
|
||
|
96358-502V |\
|
||
12 years ago
|
CT6373-1 |\
|
||
13 years ago
|
AW4339U |\
|
||
13 years ago
|
CPVA642 |\
|
||
|
CT536_CT5621 |\
|
||
|
D-4P-W |\
|
||
12 years ago
|
"F@ST2604" |\
|
||
12 years ago
|
HW556* |\
|
||
12 years ago
|
NB6 |\
|
||
13 years ago
|
SPW303V |\
|
||
13 years ago
|
SPW500V |\
|
||
13 years ago
|
V2110 |\
|
||
|
96348W3)
|
||
13 years ago
|
ucidef_set_interface_lan "eth0"
|
||
|
;;
|
||
|
|
||
13 years ago
|
AW4139)
|
||
|
ucidef_set_interface_lan "eth0.1"
|
||
|
ucidef_add_switch "eth0" "1" "1"
|
||
|
ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
|
||
|
;;
|
||
|
|
||
13 years ago
|
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"
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
||
|
;;
|
||
|
|
||
|
esac
|
||
|
|
||
|
uci commit network
|
||
|
|
||
|
exit 0
|