2010-04-11 17:47:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2013-03-03 12:47:02 +00:00
|
|
|
# Copyright (C) 2010-2013 OpenWrt.org
|
2010-04-11 17:47:23 +00:00
|
|
|
#
|
|
|
|
|
2013-03-03 12:47:02 +00:00
|
|
|
RAMIPS_BOARD_NAME=
|
|
|
|
RAMIPS_MODEL=
|
|
|
|
|
|
|
|
ramips_board_detect() {
|
2010-04-11 17:47:23 +00:00
|
|
|
local machine
|
|
|
|
local name
|
|
|
|
|
|
|
|
machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
|
|
|
|
|
|
|
|
case "$machine" in
|
2014-04-22 08:08:51 +00:00
|
|
|
*"7Links PX-4885")
|
|
|
|
name="px4885"
|
|
|
|
;;
|
2012-08-29 10:37:43 +00:00
|
|
|
*"8devices Carambola")
|
|
|
|
name="carambola"
|
|
|
|
;;
|
2012-07-12 13:29:46 +00:00
|
|
|
*"Edimax 3g-6200n")
|
|
|
|
name="3g-6200n"
|
|
|
|
;;
|
2013-04-03 10:00:03 +00:00
|
|
|
*"Edimax 3g-6200nl")
|
|
|
|
name="3g-6200nl"
|
|
|
|
;;
|
2014-10-29 11:01:17 +00:00
|
|
|
*"A5-V11")
|
|
|
|
name="a5-v11"
|
|
|
|
;;
|
2014-12-13 08:07:03 +00:00
|
|
|
*"Aigale Ai-BR100")
|
|
|
|
name="ai-br100"
|
|
|
|
;;
|
2014-11-03 08:00:13 +00:00
|
|
|
*"Airlink101 AR670W")
|
|
|
|
name="ar670w"
|
|
|
|
;;
|
2014-04-22 08:08:35 +00:00
|
|
|
*"Airlink101 AR725W")
|
|
|
|
name="ar725w"
|
|
|
|
;;
|
2012-12-29 17:50:32 +00:00
|
|
|
*"AirLive Air3GII")
|
|
|
|
name="air3gii"
|
|
|
|
;;
|
2013-02-02 17:01:50 +00:00
|
|
|
*"Edimax BR-6425")
|
|
|
|
name="br6425"
|
|
|
|
;;
|
2012-08-17 17:56:07 +00:00
|
|
|
*"Allnet ALL0239-3G")
|
|
|
|
name="all0239-3g"
|
|
|
|
;;
|
2012-01-24 11:48:47 +00:00
|
|
|
*"Allnet ALL0256N")
|
|
|
|
name="all0256n"
|
|
|
|
;;
|
2013-04-25 19:03:01 +00:00
|
|
|
*"Allnet ALL5002")
|
2012-07-24 20:38:14 +00:00
|
|
|
name="all5002"
|
|
|
|
;;
|
2013-04-25 19:03:01 +00:00
|
|
|
*"Allnet ALL5003")
|
|
|
|
name="all5003"
|
|
|
|
;;
|
2012-03-29 16:03:04 +00:00
|
|
|
*"ARC FreeStation5")
|
|
|
|
name="freestation5"
|
|
|
|
;;
|
2015-01-09 15:40:51 +00:00
|
|
|
*"Archer C20i")
|
|
|
|
name="c20i"
|
|
|
|
;;
|
2011-08-15 14:11:45 +00:00
|
|
|
*"Argus ATP-52B")
|
|
|
|
name="argus-atp52b"
|
|
|
|
;;
|
2013-10-07 15:02:44 +00:00
|
|
|
*"AsiaRF AWM002 EVB")
|
2013-07-24 08:54:41 +00:00
|
|
|
name="awm002-evb"
|
|
|
|
;;
|
2014-07-26 20:35:46 +00:00
|
|
|
*"AsiaRF AWM003 EVB")
|
|
|
|
name="awm003-evb"
|
|
|
|
;;
|
2014-06-13 09:16:15 +00:00
|
|
|
*"AsiaRF AWAPN2403")
|
|
|
|
name="awapn2403"
|
|
|
|
;;
|
2012-03-27 19:29:57 +00:00
|
|
|
*"Asus WL-330N")
|
|
|
|
name="wl-330n"
|
|
|
|
;;
|
2012-04-23 16:56:05 +00:00
|
|
|
*"Asus WL-330N3G")
|
|
|
|
name="wl-330n3g"
|
|
|
|
;;
|
2013-04-25 19:02:53 +00:00
|
|
|
*"Alpha ASL26555")
|
|
|
|
name="asl26555"
|
|
|
|
;;
|
2011-07-03 15:01:56 +00:00
|
|
|
*"Aztech HW550-3G")
|
|
|
|
name="hw550-3g"
|
|
|
|
;;
|
2015-05-23 15:27:05 +00:00
|
|
|
*"AXIMCom MR-102N")
|
|
|
|
name="mr-102n"
|
|
|
|
;;
|
2015-01-03 18:31:11 +00:00
|
|
|
*"Buffalo WSR-600DHP")
|
2014-11-14 16:52:36 +00:00
|
|
|
name="wsr-600"
|
|
|
|
;;
|
2015-01-03 18:31:11 +00:00
|
|
|
*"Buffalo WSR-1166DHP")
|
2014-11-14 16:52:36 +00:00
|
|
|
name="wsr-1166"
|
|
|
|
;;
|
2015-05-23 15:26:39 +00:00
|
|
|
*"Comfast CF-WR800N")
|
|
|
|
name="cf-wr800n"
|
|
|
|
;;
|
2015-01-20 06:34:28 +00:00
|
|
|
*"Firefly FireWRT")
|
|
|
|
name="firewrt"
|
|
|
|
;;
|
2014-06-02 12:42:52 +00:00
|
|
|
*"CY-SWR1100")
|
|
|
|
name="cy-swr1100"
|
|
|
|
;;
|
2013-09-19 05:56:46 +00:00
|
|
|
*"DCS-930")
|
|
|
|
name="dcs-930"
|
|
|
|
;;
|
2015-06-18 18:20:46 +00:00
|
|
|
*"DCS-930L B1")
|
|
|
|
name="dcs-930l-b1"
|
|
|
|
;;
|
2011-07-28 10:56:22 +00:00
|
|
|
*"DIR-300 B1")
|
2010-04-11 17:47:23 +00:00
|
|
|
name="dir-300-b1"
|
|
|
|
;;
|
2013-09-18 16:31:37 +00:00
|
|
|
*"DIR-300 B7")
|
|
|
|
name="dir-300-b7"
|
|
|
|
;;
|
2013-09-30 20:48:34 +00:00
|
|
|
*"DIR-320 B1")
|
2013-09-18 16:31:37 +00:00
|
|
|
name="dir-320-b1"
|
|
|
|
;;
|
2011-07-28 10:56:24 +00:00
|
|
|
*"DIR-600 B1")
|
|
|
|
name="dir-600-b1"
|
|
|
|
;;
|
|
|
|
*"DIR-600 B2")
|
|
|
|
name="dir-600-b2"
|
|
|
|
;;
|
2013-08-14 19:35:27 +00:00
|
|
|
*"DIR-610 A1")
|
|
|
|
name="dir-610-a1"
|
|
|
|
;;
|
2012-08-12 12:48:24 +00:00
|
|
|
*"DIR-620 A1")
|
|
|
|
name="dir-620-a1"
|
|
|
|
;;
|
2013-04-25 19:02:48 +00:00
|
|
|
*"DIR-620 D1")
|
|
|
|
name="dir-620-d1"
|
|
|
|
;;
|
2012-08-17 17:56:05 +00:00
|
|
|
*"DIR-615 H1")
|
|
|
|
name="dir-615-h1"
|
|
|
|
;;
|
2012-11-25 14:25:27 +00:00
|
|
|
*"DIR-615 D")
|
|
|
|
name="dir-615-d"
|
|
|
|
;;
|
2012-10-18 07:23:03 +00:00
|
|
|
*"DIR-645")
|
|
|
|
name="dir-645"
|
|
|
|
;;
|
2013-08-14 18:15:35 +00:00
|
|
|
*"DIR-810L")
|
|
|
|
name="dir-810l"
|
|
|
|
;;
|
2015-01-17 21:20:05 +00:00
|
|
|
*"DIR-860L B1")
|
|
|
|
name="dir-860l-b1"
|
|
|
|
;;
|
2013-03-03 12:46:08 +00:00
|
|
|
*"DAP-1350")
|
|
|
|
name="dap-1350"
|
|
|
|
;;
|
2011-12-23 14:27:10 +00:00
|
|
|
*"ESR-9753")
|
|
|
|
name="esr-9753"
|
|
|
|
;;
|
2014-08-01 11:19:50 +00:00
|
|
|
*"EASYACC WI-STOR WIZARD 8800")
|
|
|
|
name="wizard8800"
|
|
|
|
;;
|
2014-01-15 18:29:44 +00:00
|
|
|
*"Edimax BR-6475nD")
|
|
|
|
name="br-6475nd"
|
|
|
|
;;
|
2013-06-10 08:24:50 +00:00
|
|
|
*"F7C027")
|
|
|
|
name="f7c027"
|
|
|
|
;;
|
2011-12-28 08:43:43 +00:00
|
|
|
*"F5D8235 v1")
|
|
|
|
name="f5d8235-v1"
|
|
|
|
;;
|
2011-07-03 15:01:56 +00:00
|
|
|
*"F5D8235 v2")
|
|
|
|
name="f5d8235-v2"
|
|
|
|
;;
|
2012-12-10 14:13:01 +00:00
|
|
|
*"Hauppauge Broadway")
|
|
|
|
name="broadway"
|
|
|
|
;;
|
2013-04-03 10:00:08 +00:00
|
|
|
*"Huawei D105")
|
|
|
|
name="d105"
|
|
|
|
;;
|
2010-04-11 17:47:23 +00:00
|
|
|
*"La Fonera 2.0N")
|
|
|
|
name="fonera20n"
|
|
|
|
;;
|
2013-12-25 17:04:50 +00:00
|
|
|
*"Asus RT-N14U")
|
|
|
|
name="rt-n14u"
|
|
|
|
;;
|
2012-11-29 17:37:13 +00:00
|
|
|
*"Asus RT-N13U")
|
|
|
|
name="rt-n13u"
|
|
|
|
;;
|
2011-07-03 15:01:56 +00:00
|
|
|
*"MoFi Network MOFI3500-3GN")
|
|
|
|
name="mofi3500-3gn"
|
|
|
|
;;
|
2014-01-12 12:07:40 +00:00
|
|
|
*"HILINK HLK-RM04")
|
|
|
|
name="hlk-rm04"
|
|
|
|
;;
|
2015-01-08 20:26:20 +00:00
|
|
|
*"HooToo HT-TM02")
|
2014-10-06 04:52:07 +00:00
|
|
|
name="ht-tm02"
|
|
|
|
;;
|
2013-07-27 09:23:52 +00:00
|
|
|
*"HAME MPR-A1")
|
|
|
|
name="mpr-a1"
|
|
|
|
;;
|
2013-06-10 08:24:56 +00:00
|
|
|
*"HAME MPR-A2")
|
|
|
|
name="mpr-a2"
|
|
|
|
;;
|
2014-07-26 20:36:22 +00:00
|
|
|
*"Kingston MLW221")
|
|
|
|
name="mlw221"
|
|
|
|
;;
|
2015-01-17 07:07:36 +00:00
|
|
|
*"Kingston MLWG2")
|
|
|
|
name="mlwg2"
|
|
|
|
;;
|
2014-11-05 14:37:13 +00:00
|
|
|
*"Linksys E1700")
|
|
|
|
name="e1700"
|
|
|
|
;;
|
2015-06-18 18:20:56 +00:00
|
|
|
*"Linksys RE6500")
|
|
|
|
name="re6500"
|
|
|
|
;;
|
2014-07-14 17:10:39 +00:00
|
|
|
*"Planex MZK-750DHP")
|
|
|
|
name="mzk-750dhp"
|
|
|
|
;;
|
2015-04-09 10:32:37 +00:00
|
|
|
*"Microduino MicroWRT")
|
|
|
|
name="microwrt"
|
|
|
|
;;
|
2011-08-22 20:41:49 +00:00
|
|
|
*"NBG-419N")
|
|
|
|
name="nbg-419n"
|
|
|
|
;;
|
2013-04-09 14:19:33 +00:00
|
|
|
*"Netgear WNCE2001")
|
|
|
|
name="wnce2001"
|
|
|
|
;;
|
2011-10-24 21:49:36 +00:00
|
|
|
*"NexAira BC2")
|
|
|
|
name="bc2"
|
|
|
|
;;
|
2014-10-10 08:56:43 +00:00
|
|
|
*"Nexx WT1520")
|
|
|
|
name="wt1520"
|
|
|
|
;;
|
2014-10-20 06:28:48 +00:00
|
|
|
*"Nexx WT3020")
|
|
|
|
name="wt3020"
|
|
|
|
;;
|
2011-07-28 10:56:32 +00:00
|
|
|
*"NW718")
|
|
|
|
name="nw718"
|
|
|
|
;;
|
2015-01-17 14:06:13 +00:00
|
|
|
*"Intenso Memory 2 Move")
|
|
|
|
name="m2m"
|
|
|
|
;;
|
2013-02-02 17:21:05 +00:00
|
|
|
*"Omnima EMB HPM")
|
|
|
|
name="omni-emb-hpm"
|
|
|
|
;;
|
2011-12-14 20:51:26 +00:00
|
|
|
*"Omnima MiniEMBWiFi")
|
|
|
|
name="omni-emb"
|
|
|
|
;;
|
2014-08-18 16:06:48 +00:00
|
|
|
*"Omnima MiniPlug")
|
|
|
|
name="omni-plug"
|
|
|
|
;;
|
2015-06-05 14:12:25 +00:00
|
|
|
*"OLinuXino-RT5350F")
|
|
|
|
name="olinuxino-rt5350f"
|
|
|
|
;;
|
|
|
|
*"OLinuXino-RT5350F-EVB")
|
|
|
|
name="olinuxino-rt5350f-evb"
|
|
|
|
;;
|
2015-06-18 18:20:40 +00:00
|
|
|
*"PBR-M1")
|
|
|
|
name="pbr-m1"
|
|
|
|
;;
|
2012-06-19 09:52:15 +00:00
|
|
|
*"Petatel PSR-680W"*)
|
|
|
|
name="psr-680w"
|
|
|
|
;;
|
2012-12-29 17:50:38 +00:00
|
|
|
*"Planex MZK-W300NH2"*)
|
|
|
|
name="mzk-w300nh2"
|
|
|
|
;;
|
2013-08-01 14:31:15 +00:00
|
|
|
*"Poray IP2202")
|
|
|
|
name="ip2202"
|
|
|
|
;;
|
2013-08-01 14:30:53 +00:00
|
|
|
*"Poray M3")
|
|
|
|
name="m3"
|
|
|
|
;;
|
2013-08-01 14:30:58 +00:00
|
|
|
*"Poray M4")
|
|
|
|
name="m4"
|
|
|
|
;;
|
2013-08-01 14:31:04 +00:00
|
|
|
*"Poray X5")
|
|
|
|
name="x5"
|
|
|
|
;;
|
2013-08-01 14:31:09 +00:00
|
|
|
*"Poray X8")
|
|
|
|
name="x8"
|
|
|
|
;;
|
2011-07-03 15:01:56 +00:00
|
|
|
*"PWH2004")
|
|
|
|
name="pwh2004"
|
|
|
|
;;
|
2013-08-14 18:15:35 +00:00
|
|
|
*"Asus RP-N53")
|
|
|
|
name="rp-n53"
|
|
|
|
;;
|
2014-10-29 18:51:02 +00:00
|
|
|
*"Ralink MT7620a + MT7530 evaluation board")
|
|
|
|
name="mt7620a_mt7530"
|
|
|
|
;;
|
2011-07-28 10:56:30 +00:00
|
|
|
*"RT-G32 B1")
|
|
|
|
name="rt-g32-b1"
|
|
|
|
;;
|
2012-03-04 16:09:11 +00:00
|
|
|
*"RT-N10+")
|
|
|
|
name="rt-n10-plus"
|
|
|
|
;;
|
2011-07-03 15:01:56 +00:00
|
|
|
*"RT-N15")
|
|
|
|
name="rt-n15"
|
|
|
|
;;
|
2012-02-13 15:18:04 +00:00
|
|
|
*"RT-N56U")
|
|
|
|
name="rt-n56u"
|
|
|
|
;;
|
2014-06-02 12:42:48 +00:00
|
|
|
*"RUT5XX")
|
|
|
|
name="rut5xx"
|
|
|
|
;;
|
2012-02-19 16:44:49 +00:00
|
|
|
*"Skyline SL-R7205"*)
|
|
|
|
name="sl-r7205"
|
|
|
|
;;
|
2012-01-23 10:23:32 +00:00
|
|
|
*"Sparklan WCR-150GN")
|
2011-07-03 15:01:56 +00:00
|
|
|
name="wcr-150gn"
|
|
|
|
;;
|
2015-07-24 09:09:22 +00:00
|
|
|
*"STORYLiNK SAP-G3200U3")
|
|
|
|
name="sap-g3200u3"
|
|
|
|
;;
|
2010-04-11 17:47:23 +00:00
|
|
|
*"V22RW-2X2")
|
|
|
|
name="v22rw-2x2"
|
|
|
|
;;
|
2014-08-01 20:51:24 +00:00
|
|
|
*"VoCore")
|
|
|
|
name="vocore"
|
|
|
|
;;
|
2011-12-28 08:43:32 +00:00
|
|
|
*"W502U")
|
|
|
|
name="w502u"
|
|
|
|
;;
|
2013-11-16 20:28:52 +00:00
|
|
|
*"WMR-300")
|
|
|
|
name="wmr300"
|
|
|
|
;;
|
2013-10-28 06:47:31 +00:00
|
|
|
*"WHR-300HP2")
|
|
|
|
name="whr-300hp2"
|
|
|
|
;;
|
|
|
|
*"WHR-600D")
|
|
|
|
name="whr-600d"
|
|
|
|
;;
|
2014-07-01 10:26:42 +00:00
|
|
|
*"WHR-1166D")
|
|
|
|
name="whr-1166d"
|
|
|
|
;;
|
2010-04-11 17:47:23 +00:00
|
|
|
*"WHR-G300N")
|
|
|
|
name="whr-g300n"
|
|
|
|
;;
|
2012-01-26 10:44:23 +00:00
|
|
|
*"Sitecom WL-341 v3")
|
|
|
|
name="wl341v3"
|
|
|
|
;;
|
2011-12-23 14:27:16 +00:00
|
|
|
*"Sitecom WL-351 v1 002")
|
|
|
|
name="wl-351"
|
|
|
|
;;
|
2013-01-19 17:05:06 +00:00
|
|
|
*"Tenda 3G300M")
|
|
|
|
name="3g300m"
|
|
|
|
;;
|
2015-01-22 09:35:22 +00:00
|
|
|
*"Tenda 3G150B")
|
|
|
|
name="3g150b"
|
|
|
|
;;
|
2012-04-21 12:30:40 +00:00
|
|
|
*"Tenda W306R V2.0")
|
|
|
|
name="w306r-v20"
|
|
|
|
;;
|
2013-04-03 10:00:21 +00:00
|
|
|
*"Tenda W150M")
|
|
|
|
name="w150m"
|
|
|
|
;;
|
2012-10-18 07:23:12 +00:00
|
|
|
*"TEW-691GR")
|
|
|
|
name="tew-691gr"
|
|
|
|
;;
|
2012-10-18 07:23:07 +00:00
|
|
|
*"TEW-692GR")
|
|
|
|
name="tew-692gr"
|
|
|
|
;;
|
2012-02-15 21:13:11 +00:00
|
|
|
*"Ralink V11ST-FE")
|
|
|
|
name="v11st-fe"
|
|
|
|
;;
|
2011-12-27 16:56:30 +00:00
|
|
|
*"WLI-TX4-AG300N")
|
|
|
|
name="wli-tx4-ag300n"
|
|
|
|
;;
|
2011-07-03 15:01:56 +00:00
|
|
|
*"WZR-AGL300NH")
|
|
|
|
name="wzr-agl300nh"
|
2011-04-04 08:43:07 +00:00
|
|
|
;;
|
2011-08-22 18:08:45 +00:00
|
|
|
*"WR512-3GN-like router")
|
2011-08-19 15:55:10 +00:00
|
|
|
name="wr512-3gn"
|
|
|
|
;;
|
2013-03-11 21:02:43 +00:00
|
|
|
*"UR-326N4G Wireless N router")
|
|
|
|
name="ur-326n4g"
|
2013-04-25 19:03:01 +00:00
|
|
|
;;
|
2012-04-23 16:56:06 +00:00
|
|
|
*"UR-336UN Wireless N router")
|
|
|
|
name="ur-336un"
|
|
|
|
;;
|
2012-02-11 15:11:36 +00:00
|
|
|
*"AWB WR6202")
|
|
|
|
name="wr6202"
|
|
|
|
;;
|
2012-03-04 16:09:13 +00:00
|
|
|
*"XDX RN502J")
|
|
|
|
name="xdxrn502j"
|
|
|
|
;;
|
2013-07-22 15:36:39 +00:00
|
|
|
*"HG255D")
|
|
|
|
name="hg255d"
|
|
|
|
;;
|
2013-11-18 09:35:41 +00:00
|
|
|
*"V22SG")
|
|
|
|
name="v22sg"
|
|
|
|
;;
|
2014-03-07 09:54:59 +00:00
|
|
|
*"WRTNODE")
|
|
|
|
name="wrtnode"
|
|
|
|
;;
|
2014-07-02 07:42:44 +00:00
|
|
|
*"Wansview NCS601W")
|
|
|
|
name="ncs601w"
|
|
|
|
;;
|
2015-02-02 09:01:07 +00:00
|
|
|
*"Xiaomi MiWiFi Mini")
|
|
|
|
name="xiaomi-miwifi-mini"
|
|
|
|
;;
|
2014-02-18 13:33:25 +00:00
|
|
|
*"Sercomm NA930")
|
|
|
|
name="na930"
|
|
|
|
;;
|
2014-07-10 22:02:28 +00:00
|
|
|
*"Zbtlink ZBT-WA05")
|
|
|
|
name="zbt-wa05"
|
|
|
|
;;
|
2015-07-14 07:40:22 +00:00
|
|
|
*"OY-0001")
|
|
|
|
name="oy-0001"
|
|
|
|
;;
|
2014-07-12 06:54:03 +00:00
|
|
|
*"ZBT WR8305RT")
|
|
|
|
name="wr8305rt"
|
|
|
|
;;
|
2015-04-01 08:31:46 +00:00
|
|
|
*"ZTE Q7")
|
|
|
|
name="zte-q7"
|
|
|
|
;;
|
2014-08-03 11:13:52 +00:00
|
|
|
*"Lenovo Y1")
|
|
|
|
name="y1"
|
|
|
|
;;
|
|
|
|
*"Lenovo Y1S")
|
|
|
|
name="y1s"
|
|
|
|
;;
|
2014-11-12 14:55:00 +00:00
|
|
|
*"Mediatek MT7621 evaluation board")
|
|
|
|
name="mt7621"
|
|
|
|
;;
|
2014-11-06 09:31:31 +00:00
|
|
|
*"Mediatek MT7628AN evaluation board")
|
|
|
|
name="mt7628"
|
|
|
|
;;
|
2015-07-24 09:11:56 +00:00
|
|
|
*"Mediatek MT7688 evaluation board")
|
|
|
|
name="mt7688"
|
|
|
|
;;
|
2015-07-17 12:51:08 +00:00
|
|
|
*"Planex MZK-DP150N")
|
|
|
|
name="mzk-dp150n"
|
|
|
|
;;
|
2010-04-11 17:47:23 +00:00
|
|
|
*)
|
|
|
|
name="generic"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2013-03-03 12:47:02 +00:00
|
|
|
[ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME="$name"
|
|
|
|
[ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL="$machine"
|
|
|
|
|
|
|
|
[ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
|
|
|
|
|
|
|
|
echo "$RAMIPS_BOARD_NAME" > /tmp/sysinfo/board_name
|
|
|
|
echo "$RAMIPS_MODEL" > /tmp/sysinfo/model
|
|
|
|
}
|
|
|
|
|
|
|
|
ramips_board_name() {
|
|
|
|
local name
|
|
|
|
|
|
|
|
[ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
|
|
|
|
[ -z "$name" ] && name="unknown"
|
|
|
|
|
|
|
|
echo "$name"
|
2010-04-11 17:47:23 +00:00
|
|
|
}
|