2010-05-30 01:32:47 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
board_name=""
|
|
|
|
status_led=""
|
|
|
|
status_led2=""
|
|
|
|
sys_mtd_part=""
|
|
|
|
brcm63xx_has_reset_button=""
|
2013-02-05 22:25:30 +00:00
|
|
|
ifname=""
|
2010-05-30 01:32:47 +00:00
|
|
|
|
|
|
|
brcm63xx_detect() {
|
2012-05-27 13:22:08 +00:00
|
|
|
board_name=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
|
2010-05-30 01:32:47 +00:00
|
|
|
|
2013-01-23 10:12:40 +00:00
|
|
|
if [ "$board_name" = "96358VW" ] && [ -n "$(swconfig dev eth1 help 2>/dev/null)" ]; then
|
2012-05-27 13:22:11 +00:00
|
|
|
board_name="DVAG3810BN"
|
|
|
|
fi
|
|
|
|
|
2010-05-30 01:32:47 +00:00
|
|
|
case "$board_name" in
|
2014-07-12 12:31:45 +00:00
|
|
|
963281TAN)
|
|
|
|
status_led="963281TAN::power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
|
|
|
963281T_TEF)
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="A4001N1:green:power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-05-30 10:27:46 +00:00
|
|
|
96328avng)
|
|
|
|
status_led="96328avng::power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-27 17:44:59 +00:00
|
|
|
96328dg2x2)
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="A4001N:green:power"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2012-10-23 10:57:47 +00:00
|
|
|
96328A-1241N)
|
|
|
|
brcm63xx_has_reset_button="true"
|
2014-07-12 12:31:35 +00:00
|
|
|
status_led="AR-5381u:green:power"
|
2012-10-23 10:57:47 +00:00
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
96328A-1441N1)
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="AR-5387un:green:power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
|
|
|
96348GW)
|
|
|
|
status_led="96348GW:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
|
|
|
96348GW-11)
|
|
|
|
status_led="96348GW-11:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
|
|
|
96358-502V)
|
|
|
|
status_led="spw303v:green:power+adsl"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-27 17:44:48 +00:00
|
|
|
96368M-1341N)
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="VR-3025un:green:power"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2014-07-27 17:44:45 +00:00
|
|
|
96368M-1541N)
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="VR-3025u:green:power"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2014-06-30 13:34:34 +00:00
|
|
|
96369R-1231N)
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="WAP-5813n:green:power"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
AR1004G)
|
|
|
|
status_led="AR1004G:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
;;
|
|
|
|
AW4139 |\
|
|
|
|
AW4339U)
|
|
|
|
status_led="dsl-274xb:green:power"
|
2013-02-05 14:57:43 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-08-01 21:56:46 +00:00
|
|
|
AW5200B)
|
|
|
|
status_led="dsl-275xb:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
CPVA642)
|
|
|
|
status_led="CPVA642:green:power:"
|
2013-02-05 14:57:43 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
CT536_CT5621)
|
|
|
|
status_led="CT536_CT5621:green:power"
|
2012-10-23 10:57:44 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
CVG834G_E15R3921)
|
|
|
|
status_led="CVG834G:green:power"
|
2012-05-30 10:27:46 +00:00
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
D-4P-W)
|
|
|
|
status_led="D-4P-W:green:power"
|
2012-10-23 10:57:39 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:10 +00:00
|
|
|
DGND3700v1_3800B)
|
|
|
|
status_led="DGND3700v1_3800B:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
"F@ST2504n")
|
|
|
|
status_led="fast2504n:green:ok"
|
2010-05-30 01:32:47 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
2014-07-12 12:31:45 +00:00
|
|
|
ifname=eth0
|
2010-05-30 01:32:47 +00:00
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
'F@ST2704V2')
|
|
|
|
status_led="F@ST2704V2:green:power"
|
2014-02-22 11:16:38 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
2013-06-06 22:22:20 +00:00
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-05-27 13:22:08 +00:00
|
|
|
GW6000)
|
2010-12-07 15:15:54 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
2012-05-27 13:22:08 +00:00
|
|
|
GW6200)
|
2013-03-04 13:42:35 +00:00
|
|
|
status_led="GW6200:green:line1"
|
|
|
|
status_led2="GW6200:green:tel"
|
2010-12-07 15:15:54 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
2014-07-12 12:31:39 +00:00
|
|
|
HW553)
|
|
|
|
status_led="HW553:blue:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2013-01-04 14:47:57 +00:00
|
|
|
HW556*)
|
|
|
|
status_led="HW556:red:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-27 17:44:56 +00:00
|
|
|
HW6358GW_B)
|
|
|
|
status_led="HW520:green:net"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
NB6)
|
2010-12-10 18:59:58 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-27 17:44:53 +00:00
|
|
|
P870HW-51a_v2)
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="P870HW-51a:green:power"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
RTA770BW)
|
2010-11-28 22:04:36 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="RTA770BW:green:diag"
|
2010-11-28 22:04:36 +00:00
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
RTA770W)
|
2011-05-11 13:33:50 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="RTA770W:green:diag"
|
2011-05-11 13:33:50 +00:00
|
|
|
ifname=eth0
|
|
|
|
;;
|
2014-07-12 12:31:45 +00:00
|
|
|
SPW500V)
|
|
|
|
status_led="SPW500V:green:power"
|
2011-05-11 13:34:14 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-05-27 13:22:08 +00:00
|
|
|
V2110)
|
2011-05-20 10:06:25 +00:00
|
|
|
status_led="V2110:power:green"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2010-05-30 01:32:47 +00:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
brcm63xx_detect
|