2010-05-30 04:32:47 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
board_name=""
|
|
|
|
status_led=""
|
|
|
|
status_led2=""
|
|
|
|
sys_mtd_part=""
|
|
|
|
brcm63xx_has_reset_button=""
|
|
|
|
|
|
|
|
brcm63xx_detect() {
|
2012-05-27 16:22:08 +03:00
|
|
|
board_name=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
|
2010-05-30 04:32:47 +03:00
|
|
|
|
2012-05-27 16:22:11 +03:00
|
|
|
if [ "$board_name" = "96358VW" ] && [ -e /proc/switch/eth1/enable ]; then
|
|
|
|
board_name="DVAG3810BN"
|
|
|
|
fi
|
|
|
|
|
2010-05-30 04:32:47 +03:00
|
|
|
case "$board_name" in
|
2012-05-30 13:27:46 +03:00
|
|
|
96328avng)
|
|
|
|
status_led="96328avng::power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
|
|
|
963281TAN)
|
|
|
|
status_led="963281TAN::power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-10-23 13:57:39 +03:00
|
|
|
963281T_TEF)
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="963281T_TEF:green:power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-05-27 16:22:08 +03:00
|
|
|
96348GW)
|
2010-12-07 17:15:41 +02:00
|
|
|
status_led="power"
|
2010-05-30 04:32:47 +03:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
2012-05-27 16:22:08 +03:00
|
|
|
GW6000)
|
2010-12-07 17:15:54 +02:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
2012-05-27 16:22:08 +03:00
|
|
|
GW6200)
|
2010-12-07 17:15:54 +02:00
|
|
|
status_led="line1"
|
|
|
|
status_led2="tel"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
2012-05-27 16:22:08 +03:00
|
|
|
96348GW-11)
|
2010-08-02 22:32:59 +03:00
|
|
|
status_led="power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
2012-05-27 16:22:08 +03:00
|
|
|
CT536_CT5621)
|
2010-12-10 20:59:58 +02:00
|
|
|
status_led="power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-05-27 16:22:08 +03:00
|
|
|
SPW500V)
|
2010-11-29 00:04:36 +02:00
|
|
|
status_led="power:green"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-05-27 16:22:43 +03:00
|
|
|
AW4139 |\
|
|
|
|
AW4339U)
|
2011-05-11 16:33:50 +03:00
|
|
|
status_led="dsl-274xb:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-05-27 16:22:08 +03:00
|
|
|
96358-502V)
|
2011-05-11 16:34:14 +03:00
|
|
|
status_led="spw303v:green:power+adsl"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-05-27 16:22:08 +03:00
|
|
|
V2110)
|
2011-05-20 13:06:25 +03:00
|
|
|
status_led="V2110:power:green"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-05-27 16:22:08 +03:00
|
|
|
CPVA642)
|
2010-12-06 08:46:03 +02:00
|
|
|
status_led="power:green"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-05-27 16:22:08 +03:00
|
|
|
D-4P-W)
|
2011-05-20 13:06:22 +03:00
|
|
|
status_led="power:green"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2012-07-31 17:27:47 +03:00
|
|
|
NB6)
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2010-05-30 04:32:47 +03:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
brcm63xx_detect
|