2010-05-30 01:32:47 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2015-03-16 11:52:16 +00:00
|
|
|
board_id=""
|
2010-05-30 01:32:47 +00:00
|
|
|
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
|
|
|
|
2015-03-16 11:52:26 +00:00
|
|
|
brcm63xx_dt_detect() {
|
2015-03-16 11:52:20 +00:00
|
|
|
local board_name
|
|
|
|
|
|
|
|
case "$1" in
|
2015-03-16 11:52:26 +00:00
|
|
|
"ADB P.DG A4001N")
|
|
|
|
board_name="a4001n"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"ADB P.DG A4001N1")
|
2015-03-16 11:52:20 +00:00
|
|
|
board_name="a4001n1"
|
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Alcatel RG100A")
|
|
|
|
board_name="rg100a"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"ASMAX AR 1004g")
|
|
|
|
board_name="ar100g"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Belkin F5D7633")
|
|
|
|
board_name="f5d7633"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Broadcom 96348R reference board")
|
|
|
|
board_name="bcm96348r"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Broadcom bcm963281TAN reference board")
|
|
|
|
board_name="bcm963281tan"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Broadcom BCM96328avng reference board")
|
|
|
|
board_name="bcm6328avng"
|
|
|
|
;;
|
|
|
|
"Broadcom BCM96345GW2 reference board")
|
|
|
|
board_name="bcm96345gw2"
|
|
|
|
;;
|
|
|
|
"Broadcom BCM96348GW-10 reference board")
|
|
|
|
board_name="bcm96348gw-10"
|
|
|
|
;;
|
|
|
|
"Broadcom BCM96348GW-11 reference board")
|
2015-03-16 11:52:20 +00:00
|
|
|
board_name="bcm96348gw-11"
|
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Broadcom BCM96348GW reference board")
|
|
|
|
board_name="bcm96358gw"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Broadcom BCM96358VW reference board")
|
|
|
|
board_name="bcm96358vw"
|
|
|
|
;;
|
|
|
|
"Broadcom BCM96358VW2 reference board")
|
|
|
|
board_name="bcm96358vw2"
|
|
|
|
;;
|
|
|
|
"Broadcom BCM96368MVNgr reference board")
|
|
|
|
board_name="bcm96368mvngr"
|
|
|
|
;;
|
|
|
|
"Broadcom BCM96368MVWG reference board")
|
|
|
|
board_name="bcm96368mvwg"
|
|
|
|
;;
|
|
|
|
"BT Voyager V2500V")
|
|
|
|
board_name="v2500v"
|
|
|
|
;;
|
|
|
|
"Comtrend AR-5381u")
|
|
|
|
board_name="ar-5381u"
|
|
|
|
;;
|
|
|
|
"Comtrend AR-5387un")
|
|
|
|
board_name="ar-5387un"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Comtrend CT-5365")
|
|
|
|
board_name="ct-5365"
|
|
|
|
;;
|
|
|
|
"Comtrend CT-536+/CT-5621T")
|
|
|
|
board_name="ct-536p_5621t"
|
|
|
|
;;
|
|
|
|
"Comtrend CT-6373")
|
|
|
|
board_name="ct-6373"
|
|
|
|
;;
|
|
|
|
"Comtrend VR-3025u")
|
2015-03-16 11:52:20 +00:00
|
|
|
board_name="vr-3025u"
|
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Comtrend VR-3025un")
|
|
|
|
board_name="vr-3025un"
|
|
|
|
;;
|
|
|
|
"Comtrend WAP-5813n")
|
2015-03-16 11:52:20 +00:00
|
|
|
board_name="wap-5813n"
|
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Davolink DV-201AMR")
|
|
|
|
board_name="dv-201amr"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"D-Link DSL-2640B rev B2")
|
|
|
|
board_name="dsl-2640b-b"
|
|
|
|
;;
|
|
|
|
"D-Link DSL-2650U")
|
|
|
|
board_name="dsl-2650u"
|
|
|
|
;;
|
|
|
|
"D-Link DSL-2740B/DSL-2741B rev C2/3")
|
2015-03-16 11:52:20 +00:00
|
|
|
board_name="dsl-274xb-c"
|
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"D-Link DSL-2740B/DSL-2741B rev F1")
|
|
|
|
board_name="dsl-274xb-f"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"D-Link DVA-G3810BN/TL")
|
|
|
|
board_name="dva-g3810bn"
|
|
|
|
;;
|
|
|
|
"Dynalink RTA1025W")
|
|
|
|
board_name="rta1025w"
|
|
|
|
;;
|
|
|
|
"Dynalink RTA1320")
|
|
|
|
board_name="rta1320"
|
|
|
|
;;
|
|
|
|
"Huawei EchoLife HG520v")
|
|
|
|
board_name="hg520v"
|
|
|
|
;;
|
|
|
|
"Huawei EchoLife HG553")
|
|
|
|
board_name="hg553"
|
|
|
|
;;
|
|
|
|
"Huawei EchoLife HG556a (version A)")
|
|
|
|
board_name="hg556a_a"
|
|
|
|
;;
|
|
|
|
"Huawei EchoLife HG556a (version B)")
|
|
|
|
board_name="hg556a_b"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Huawei EchoLife HG556a (version C)")
|
|
|
|
board_name="hg556a_c"
|
|
|
|
;;
|
|
|
|
"Inventel Livebox 1")
|
|
|
|
board_name="livebox1"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Netgear CVG834G")
|
2015-03-16 11:52:20 +00:00
|
|
|
board_name="cvg834g"
|
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Netgear DG834GT/PN")
|
|
|
|
board_name="dg834gt"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Netgear DGND3700v1/DGND3800B")
|
2015-03-16 11:52:20 +00:00
|
|
|
board_name="dgnd3700v1_dgnd3800b"
|
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Pirelli A226G")
|
|
|
|
board_name="a226g"
|
|
|
|
;;
|
|
|
|
"Pirelli A226M")
|
|
|
|
board_name="a226m"
|
|
|
|
;;
|
|
|
|
"Pirelli A226M-FWB")
|
|
|
|
board_name="a226m-fwb"
|
|
|
|
;;
|
|
|
|
"Pirelli Alice Gate AGPF-S0")
|
|
|
|
board_name="agpf-s0"
|
|
|
|
;;
|
|
|
|
"Sagem F@ST2404")
|
|
|
|
board_name="fast2404"
|
|
|
|
;;
|
|
|
|
"Sagem F@ST2504n")
|
2015-03-16 11:52:20 +00:00
|
|
|
board_name="fast2504n"
|
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Sagem F@ST2604")
|
|
|
|
board_name="fast2604"
|
|
|
|
;;
|
|
|
|
"Sagem F@ST2704V2")
|
2015-03-16 11:52:20 +00:00
|
|
|
board_name="fast2704v2"
|
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"SFR Neuf Box 4"*)
|
|
|
|
board_name="neufbox4"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"SFR neufbox 6 (Sercomm)")
|
|
|
|
board_name="neufbox6"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"T-Com Speedport W303 V")
|
|
|
|
board_name="spw303v"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"T-Com Speedport W500 V")
|
|
|
|
board_name="spw500v"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"TECOM GW6000")
|
|
|
|
board_name="g6000"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"TECOM GW6200")
|
|
|
|
board_name="g6200"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"Telsey CPVA642-type (CPA-ZNTE60T)")
|
|
|
|
board_name="cpva642"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"TP-Link TD-W8900GB")
|
|
|
|
board_name="td-w8900gb"
|
2015-03-16 11:52:20 +00:00
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
"USRobotics 9108")
|
|
|
|
board_name="usr9108"
|
|
|
|
;;
|
|
|
|
"Zyxel P870HW-51a v2")
|
2015-03-16 11:52:20 +00:00
|
|
|
board_name="p870hw-51a_v2"
|
|
|
|
;;
|
2015-03-16 11:52:26 +00:00
|
|
|
*)
|
|
|
|
board_name="unknown"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo "$board_name"
|
|
|
|
}
|
|
|
|
|
|
|
|
brcm63xx_legacy_detect() {
|
|
|
|
local board_name
|
|
|
|
|
|
|
|
case "$1" in
|
2015-03-16 11:52:20 +00:00
|
|
|
RTA770BW)
|
|
|
|
board_name="rta770bw"
|
|
|
|
;;
|
|
|
|
RTA770W)
|
|
|
|
board_name="rta770w"
|
|
|
|
;;
|
|
|
|
V2110)
|
|
|
|
board_name="v2110"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
board_name="unknown"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo "$board_name"
|
|
|
|
}
|
|
|
|
|
2010-05-30 01:32:47 +00:00
|
|
|
brcm63xx_detect() {
|
2015-03-16 11:52:20 +00:00
|
|
|
local board_name model
|
|
|
|
|
2015-03-16 11:52:16 +00:00
|
|
|
board_id=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
|
2010-05-30 01:32:47 +00:00
|
|
|
|
2015-03-16 11:52:20 +00:00
|
|
|
if [ -e /proc/device-tree ]; then
|
|
|
|
model=$(cat /proc/device-tree/model)
|
2015-03-16 11:52:26 +00:00
|
|
|
board_name=$(brcm63xx_dt_detect "$model")
|
2015-03-16 11:52:20 +00:00
|
|
|
else
|
|
|
|
model="Unknown bcm63xx board"
|
2015-03-16 11:52:26 +00:00
|
|
|
board_name=$(brcm63xx_legacy_detect "$board_id")
|
2015-03-16 11:52:20 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
case "$board_name" in
|
|
|
|
bcm963281tan)
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="963281TAN::power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
a4001n1)
|
2014-07-12 12:31:45 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="A4001N1:green:power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
bcm96328avng)
|
2012-05-30 10:27:46 +00:00
|
|
|
status_led="96328avng::power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
a4001n)
|
2014-07-27 17:44:59 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="A4001N:green:power"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
ar-5381u)
|
2012-10-23 10:57:47 +00:00
|
|
|
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
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
ar-5387un)
|
2014-07-12 12:31:45 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="AR-5387un:green:power"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
bcm96348gw)
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="96348GW:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
bcm96348gw-11)
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="96348GW-11:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
spw303v)
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="spw303v:green:power+adsl"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
vr-3025un)
|
2014-07-27 17:44:48 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="VR-3025un:green:power"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
vr-3025u)
|
2014-07-27 17:44:45 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="VR-3025u:green:power"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
wap-5813n)
|
2014-06-30 13:34:34 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="WAP-5813n:green:power"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
ar1004g)
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="AR1004G:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
dsl-274xb-c)
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="dsl-274xb:green:power"
|
2013-02-05 14:57:43 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
dsl-275xb-d)
|
2014-08-01 21:56:46 +00:00
|
|
|
status_led="dsl-275xb:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
cpva642)
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="CPVA642:green:power:"
|
2013-02-05 14:57:43 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
ct536_ct5621)
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="CT536_CT5621:green:power"
|
2012-10-23 10:57:44 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
cvg834g)
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="CVG834G:green:power"
|
2012-05-30 10:27:46 +00:00
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
dsl-2640b-b)
|
2014-07-12 12:31:45 +00:00
|
|
|
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:20 +00:00
|
|
|
dgnd3700v1_dgnd3800b)
|
2015-03-16 11:52:10 +00:00
|
|
|
status_led="DGND3700v1_3800B:green:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
fast2504n)
|
2014-07-12 12:31:45 +00:00
|
|
|
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
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
fast2704v2)
|
2014-07-12 12:31:45 +00:00
|
|
|
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
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
gw6000)
|
2010-12-07 15:15:54 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth1
|
|
|
|
;;
|
2015-03-16 11:52:20 +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
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
hg553)
|
2014-07-12 12:31:39 +00:00
|
|
|
status_led="HW553:blue:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
hg556a_*)
|
2013-01-04 14:47:57 +00:00
|
|
|
status_led="HW556:red:power"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
hg520)
|
2014-07-27 17:44:56 +00:00
|
|
|
status_led="HW520:green:net"
|
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
neufbox6)
|
2010-12-10 18:59:58 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
p870hw-51a_v2)
|
2014-07-27 17:44:53 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
status_led="P870HW-51a:green:power"
|
|
|
|
ifname="eth0"
|
|
|
|
;;
|
2015-03-16 11:52:20 +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
|
|
|
|
;;
|
2015-03-16 11:52:20 +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
|
|
|
|
;;
|
2015-03-16 11:52:20 +00:00
|
|
|
spw500v)
|
2014-07-12 12:31:45 +00:00
|
|
|
status_led="SPW500V:green:power"
|
2011-05-11 13:34:14 +00:00
|
|
|
brcm63xx_has_reset_button="true"
|
|
|
|
ifname=eth0
|
|
|
|
;;
|
2015-03-16 11:52:20 +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
|
2015-03-16 11:52:20 +00:00
|
|
|
|
|
|
|
[ -e "/tmp/sysinfo" ] || mkdir -p "/tmp/sysinfo"
|
|
|
|
|
|
|
|
echo "$board_name" > /tmp/sysinfo/board_name
|
|
|
|
echo "$model" > /tmp/sysinfo/model
|
|
|
|
}
|
|
|
|
|
|
|
|
brcm63xx_board_name() {
|
|
|
|
local name
|
|
|
|
|
|
|
|
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
|
|
|
[ -n "$name" ] || name="unknown"
|
|
|
|
|
|
|
|
echo $name
|
2010-05-30 01:32:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
brcm63xx_detect
|