2009-08-19 21:26:53 +02:00
|
|
|
#!/bin/sh
|
2013-02-18 10:56:27 +01:00
|
|
|
# Copyright (C) 2009-2013 OpenWrt.org
|
2009-08-19 21:26:53 +02:00
|
|
|
|
2013-02-18 10:56:27 +01:00
|
|
|
. /lib/functions/leds.sh
|
2009-08-19 21:26:53 +02:00
|
|
|
. /lib/ar71xx.sh
|
|
|
|
|
|
|
|
get_status_led() {
|
2016-09-28 02:02:40 +02:00
|
|
|
local board=$(ar71xx_board_name)
|
|
|
|
|
|
|
|
case $board in
|
2016-08-09 16:06:45 +02:00
|
|
|
a60)
|
|
|
|
status_led="a60:green:status"
|
|
|
|
;;
|
2012-01-01 20:30:25 +01:00
|
|
|
alfa-nx)
|
|
|
|
status_led="alfa:green:led_8"
|
|
|
|
;;
|
2012-08-22 14:33:22 +02:00
|
|
|
all0305)
|
|
|
|
status_led="eap7660d:green:ds4"
|
|
|
|
;;
|
2016-09-28 02:14:33 +02:00
|
|
|
antminer-s1|\
|
|
|
|
antminer-s3|\
|
|
|
|
antminer-r1|\
|
|
|
|
minibox-v1|\
|
ar71xx: add support for YunCore SR3200 and XD3200
YunCore SR3200 is a dual-band AC1200 router, based on Qualcomm/Atheros
QCA9563+QCA9882+QCA8337N.
YunCore XD3200 (FCC ID: 2ADUG-XD3200) is a dual-band AC1200 ceiling mount
AP with PoE support, based on Qualcomm/Atheros QCA9563+QCA9882+QCA8334.
Common specification:
- 775/650/258 MHz (CPU/DDR/AHB)
- 128 MB or RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- 2T2R 2.4 GHz, with ext. PA (SKY65174-21), up to 30 dBm
- 2T2R 5 GHz, with ext. PA (SKY85405-11) and LNA (SKY85601-11), up to 30 dBm
SR3200 specification:
- 5x 10/100/1000 Mbps Ethernet
- 6x ext. RP-SMA antennas (actually, only 4 are connected with radio chips)
- 3x LED (+ 5x LED in RJ45 sockets), 1x button
- UART header on PCB
XD3200 specification:
- 2x 10/100/1000 Mbps Ethernet, with 802.3at PoE support (WAN port)
- 4x internal antennas
- 3 sets of LEDs on external PCB (+ 2x LED near RJ45 sockets), 1x button
- UART and JTAG (custom 6-pin, 2 mm pitch) headers on PCB
LED for 5 GHz WLAN is currently not supported on both devices as it is
connected directly to the QCA9882 radio chip.
Flash instruction under vendor firmware, using telnet/SSH:
1. If your firmware does not have root password, go to point 5
2. Connect PC with 192.168.1.x address to LAN or WAN port
3. Power up device, enter failsafe mode with button (no LED indicator!)
4. Change root password and reboot (mount_root, passwd ..., reboot -f)
5. Upload lede-ar71xx-...-sysupgrade.bin to /tmp using SCP
6. Connect PC with 192.168.188.x address to LAN port, SSH to 192.168.188.253
7. Invoke:
- cd /tmp
- fw_setenv bootcmd "bootm 0x9fe80000 || bootm 0x9f050000"
- mtd -e firmware -r write lede-ar71xx-...-sysupgrade.bin firmware
Flash instruction under U-Boot, using UART:
1. tftp 0x80060000 lede-ar71xx-...-sysupgrade.bin
2. erase 0x9f050000 +$filesize
3. cp.b $fileaddr 0x9f050000 $filesize
4. setenv bootcmd "bootm 0x9fe80000 || bootm 0x9f050000"
5. saveenv && reset
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-12-02 22:42:41 +01:00
|
|
|
som9331|\
|
|
|
|
sr3200|\
|
|
|
|
xd3200)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:system"
|
2016-01-01 22:21:13 +01:00
|
|
|
;;
|
2016-09-28 02:14:33 +02:00
|
|
|
ap132|\
|
|
|
|
db120|\
|
|
|
|
dr344|\
|
|
|
|
tew-632brp|\
|
|
|
|
wpj344|\
|
|
|
|
zbt-we1526)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:status"
|
2013-01-29 20:12:32 +01:00
|
|
|
;;
|
2012-12-26 10:50:36 +01:00
|
|
|
ap136-010|\
|
|
|
|
ap136-020)
|
2012-07-05 10:26:50 +02:00
|
|
|
status_led="ap136:green:status"
|
|
|
|
;;
|
2015-07-24 11:09:42 +02:00
|
|
|
ap147-010)
|
|
|
|
status_led="ap147:green:status"
|
|
|
|
;;
|
2012-12-29 17:02:27 +01:00
|
|
|
ap135-020)
|
|
|
|
status_led="ap135:green:status"
|
|
|
|
;;
|
2016-12-27 22:41:41 +01:00
|
|
|
archer-c59-v1|\
|
|
|
|
archer-c60-v1|\
|
2016-09-28 02:14:33 +02:00
|
|
|
mr12|\
|
|
|
|
mr16|\
|
2016-10-30 17:57:27 +01:00
|
|
|
nbg6616|\
|
2017-01-15 23:01:05 +01:00
|
|
|
sc1750|\
|
2017-01-15 23:01:04 +01:00
|
|
|
sc450|\
|
2016-11-07 15:37:25 +01:00
|
|
|
tl-wpa8630)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:power"
|
2009-08-19 21:26:53 +02:00
|
|
|
;;
|
2016-10-06 02:19:17 +02:00
|
|
|
ap90q|\
|
2016-10-08 03:36:35 +02:00
|
|
|
cpe830|\
|
2016-10-08 01:17:04 +02:00
|
|
|
cpe870|\
|
2016-10-06 02:19:17 +02:00
|
|
|
gl-inet)
|
|
|
|
status_led="$board:green:lan"
|
|
|
|
;;
|
2010-09-27 10:59:53 +02:00
|
|
|
ap96)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:led2"
|
2010-09-27 10:59:53 +02:00
|
|
|
;;
|
2009-08-19 21:26:53 +02:00
|
|
|
aw-nr580)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:ready"
|
2009-08-19 21:26:53 +02:00
|
|
|
;;
|
2016-11-08 14:45:00 +01:00
|
|
|
bhr-4grv2|\
|
|
|
|
wzr-hp-ag300h|\
|
|
|
|
wzr-hp-g300nh2)
|
|
|
|
status_led="buffalo:red:diag"
|
|
|
|
;;
|
2015-08-17 08:16:54 +02:00
|
|
|
bsb)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:red:sys"
|
|
|
|
;;
|
|
|
|
bullet-m|\
|
|
|
|
rocket-m|\
|
|
|
|
rocket-m-xw|\
|
|
|
|
nano-m|\
|
|
|
|
nanostation-m|\
|
|
|
|
nanostation-m-xw|\
|
|
|
|
loco-m-xw)
|
2009-10-01 21:41:13 +02:00
|
|
|
status_led="ubnt:green:link4"
|
|
|
|
;;
|
2015-07-07 15:46:38 +02:00
|
|
|
rocket-m-ti)
|
|
|
|
status_led="ubnt:green:link6"
|
|
|
|
;;
|
2013-10-30 07:50:58 +01:00
|
|
|
bxu2000n-2-a1)
|
|
|
|
status_led="bhu:green:status"
|
|
|
|
;;
|
2015-12-19 12:27:59 +01:00
|
|
|
cap324)
|
|
|
|
status_led="pcs:green:power"
|
|
|
|
;;
|
2016-10-05 14:53:11 +02:00
|
|
|
c-55|\
|
|
|
|
c-60)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:pwr"
|
2015-12-23 15:43:35 +01:00
|
|
|
;;
|
2012-10-27 10:55:39 +02:00
|
|
|
cap4200ag)
|
|
|
|
status_led="senao:green:pwr"
|
|
|
|
;;
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 02:24:58 +02:00
|
|
|
cf-e316n-v2|\
|
|
|
|
cf-e520n|\
|
|
|
|
cf-e530n)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:blue:wan"
|
2015-09-11 18:31:35 +02:00
|
|
|
;;
|
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.
All 3 devices are based on Qualcomm/Atheros QCA9531 v2.
COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:
- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-10-05 02:24:58 +02:00
|
|
|
cf-e320n-v2)
|
|
|
|
status_led="$board:blue:wlan"
|
|
|
|
;;
|
ar71xx: add support for COMFAST CF-E380AC v1 and v2
COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.
There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size
Version number is available only inside vendor GUI,
hardware and markings are the same.
Short specification:
- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) headers on PCB
- external watchdog (Pericon Technology PT7A7514)
Flash instruction:
Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2016-11-14 17:38:23 +01:00
|
|
|
cf-e380ac-v1|\
|
|
|
|
cf-e380ac-v2)
|
|
|
|
status_led="$board:blue:wlan2g"
|
|
|
|
;;
|
2014-11-26 09:59:32 +01:00
|
|
|
cpe510)
|
|
|
|
status_led="tp-link:green:link4"
|
|
|
|
;;
|
2015-12-19 12:28:12 +01:00
|
|
|
cr3000)
|
|
|
|
status_led="pcs:amber:power"
|
|
|
|
;;
|
2015-12-19 12:28:18 +01:00
|
|
|
cr5000)
|
|
|
|
status_led="pcs:amber:power"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
dgl-5500-a1|\
|
2014-11-19 10:20:47 +01:00
|
|
|
dhp-1565-a1|\
|
2016-09-28 02:02:40 +02:00
|
|
|
dir-505-a1|\
|
|
|
|
dir-600-a1|\
|
|
|
|
dir-615-e1|\
|
|
|
|
dir-615-i1|\
|
2012-01-31 19:37:15 +01:00
|
|
|
dir-615-e4)
|
|
|
|
status_led="d-link:green:power"
|
2010-01-11 09:02:10 +01:00
|
|
|
;;
|
2009-12-18 13:57:01 +01:00
|
|
|
dir-615-c1)
|
2012-01-31 19:37:15 +01:00
|
|
|
status_led="d-link:green:status"
|
2012-01-31 19:37:09 +01:00
|
|
|
;;
|
2013-09-21 18:08:44 +02:00
|
|
|
dir-825-b1)
|
2012-01-31 19:37:15 +01:00
|
|
|
status_led="d-link:orange:power"
|
2009-12-03 16:07:34 +01:00
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
dir-825-c1|\
|
2013-09-21 18:08:44 +02:00
|
|
|
dir-835-a1)
|
|
|
|
status_led="d-link:amber:power"
|
2013-01-29 23:50:54 +01:00
|
|
|
;;
|
2016-10-11 20:32:26 +02:00
|
|
|
dir-869-a1)
|
|
|
|
status_led="d-link:white:status"
|
|
|
|
;;
|
2015-11-21 22:24:18 +01:00
|
|
|
dlan-hotspot)
|
|
|
|
status_led="devolo:green:wifi"
|
|
|
|
;;
|
2015-07-14 09:32:33 +02:00
|
|
|
dlan-pro-500-wp)
|
|
|
|
status_led="devolo:green:wlan-2g"
|
|
|
|
;;
|
2015-07-14 09:37:03 +02:00
|
|
|
dlan-pro-1200-ac)
|
|
|
|
status_led="devolo:status:wlan"
|
2015-12-11 16:04:47 +01:00
|
|
|
;;
|
2016-06-16 18:08:03 +02:00
|
|
|
dr531)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:sig4"
|
2016-06-16 18:08:03 +02:00
|
|
|
;;
|
2016-09-28 02:14:33 +02:00
|
|
|
dragino2|\
|
|
|
|
oolite)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:red:system"
|
2014-10-14 12:33:07 +02:00
|
|
|
;;
|
2016-10-18 10:18:50 +02:00
|
|
|
dw33d)
|
|
|
|
status_led="$board:blue:status"
|
|
|
|
;;
|
2016-10-06 23:46:38 +02:00
|
|
|
eap120)
|
|
|
|
status_led="$(ar71xx_board_name):green:system"
|
|
|
|
;;
|
2014-07-14 23:30:28 +02:00
|
|
|
eap300v2)
|
|
|
|
status_led="engenius:blue:power"
|
|
|
|
;;
|
2010-08-14 23:07:31 +02:00
|
|
|
eap7660d)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:ds4"
|
2010-08-14 23:07:31 +02:00
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
el-mini|\
|
2014-06-26 13:49:47 +02:00
|
|
|
el-m150)
|
2014-11-14 17:58:29 +01:00
|
|
|
status_led="easylink:green:system"
|
2014-06-26 13:49:47 +02:00
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
ew-dorin|\
|
|
|
|
ew-dorin-router)
|
2015-05-10 09:47:04 +02:00
|
|
|
status_led="dorin:green:status"
|
|
|
|
;;
|
2014-12-17 09:27:38 +01:00
|
|
|
f9k1115v2)
|
|
|
|
status_led="belkin:blue:status"
|
|
|
|
;;
|
2016-09-28 02:14:33 +02:00
|
|
|
epg5000|\
|
2014-07-13 21:43:58 +02:00
|
|
|
esr1750)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:amber:power"
|
2014-07-13 21:43:58 +02:00
|
|
|
;;
|
2014-07-14 12:25:51 +02:00
|
|
|
esr900)
|
|
|
|
status_led="engenius:amber:power"
|
|
|
|
;;
|
2014-06-02 16:56:35 +02:00
|
|
|
hiwifi-hc6361)
|
|
|
|
status_led="hiwifi:blue:system"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
hornet-ub|\
|
2015-04-09 12:32:08 +02:00
|
|
|
hornet-ub-x2)
|
2011-12-14 21:54:10 +01:00
|
|
|
status_led="alfa:blue:wps"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
ja76pf|\
|
2012-03-16 19:00:34 +01:00
|
|
|
ja76pf2)
|
2012-03-16 19:00:26 +01:00
|
|
|
status_led="jjplus:green:led1"
|
2010-12-10 18:57:51 +01:00
|
|
|
;;
|
2016-07-08 15:03:00 +02:00
|
|
|
jwap230)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:led1"
|
2016-07-08 15:03:00 +02:00
|
|
|
;;
|
2009-08-19 21:26:53 +02:00
|
|
|
ls-sr71)
|
|
|
|
status_led="ubnt:green:d22"
|
|
|
|
;;
|
2015-02-09 13:16:51 +01:00
|
|
|
mc-mac1200r)
|
|
|
|
status_led="mercury:green:system"
|
|
|
|
;;
|
2016-09-28 02:14:33 +02:00
|
|
|
mr18|\
|
|
|
|
z1)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:tricolor0"
|
2015-12-12 07:42:29 +01:00
|
|
|
;;
|
2012-11-18 10:32:35 +01:00
|
|
|
mr600)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:orange:power"
|
2012-11-18 10:32:35 +01:00
|
|
|
;;
|
2013-02-01 16:50:45 +01:00
|
|
|
mr600v2)
|
|
|
|
status_led="mr600:blue:power"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
mr1750|\
|
2016-05-20 17:53:14 +02:00
|
|
|
mr1750v2)
|
2015-09-14 22:11:01 +02:00
|
|
|
status_led="mr1750:blue:power"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
mr900|\
|
2014-11-14 17:55:04 +01:00
|
|
|
mr900v2)
|
2014-11-14 17:54:15 +01:00
|
|
|
status_led="mr900:blue:power"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
mynet-n600|\
|
2013-12-16 08:16:43 +01:00
|
|
|
mynet-n750)
|
2013-09-20 00:36:41 +02:00
|
|
|
status_led="wd:blue:power"
|
|
|
|
;;
|
2013-11-07 23:31:53 +01:00
|
|
|
mynet-rext)
|
|
|
|
status_led="wd:blue:power"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
mzk-w04nu|\
|
2009-08-19 21:26:53 +02:00
|
|
|
mzk-w300nh)
|
2011-11-01 12:20:47 +01:00
|
|
|
status_led="planex:green:status"
|
2009-08-19 21:26:53 +02:00
|
|
|
;;
|
2010-12-10 16:17:03 +01:00
|
|
|
nbg460n_550n_550nh)
|
|
|
|
status_led="nbg460n:green:power"
|
|
|
|
;;
|
2014-04-13 10:29:07 +02:00
|
|
|
nbg6716)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:white:power"
|
2014-04-13 10:29:07 +02:00
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
om2p|\
|
|
|
|
om2pv2|\
|
2016-06-02 11:25:00 +02:00
|
|
|
om2pv4|\
|
2016-09-28 02:02:40 +02:00
|
|
|
om2p-hs|\
|
|
|
|
om2p-hsv2|\
|
|
|
|
om2p-hsv3|\
|
2016-06-02 11:25:00 +02:00
|
|
|
om2p-hsv4|\
|
2012-07-05 10:26:53 +02:00
|
|
|
om2p-lc)
|
2011-10-27 09:54:51 +02:00
|
|
|
status_led="om2p:blue:power"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
om5p|\
|
2015-03-17 10:43:31 +01:00
|
|
|
om5p-an)
|
2014-07-20 19:30:44 +02:00
|
|
|
status_led="om5p:blue:power"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
om5p-ac|\
|
2016-04-09 12:26:18 +02:00
|
|
|
om5p-acv2)
|
2016-04-09 12:25:51 +02:00
|
|
|
status_led="om5pac:blue:power"
|
|
|
|
;;
|
2016-04-26 13:44:36 +02:00
|
|
|
omy-g1)
|
|
|
|
status_led="omy:green:wlan"
|
|
|
|
;;
|
2016-03-16 10:26:58 +01:00
|
|
|
omy-x1)
|
|
|
|
status_led="omy:green:power"
|
|
|
|
;;
|
2015-07-24 11:09:49 +02:00
|
|
|
onion-omega)
|
|
|
|
status_led="onion:amber:system"
|
|
|
|
;;
|
2009-08-19 21:26:53 +02:00
|
|
|
pb44)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:amber:jump1"
|
2009-08-19 21:26:53 +02:00
|
|
|
;;
|
2014-01-20 11:23:03 +01:00
|
|
|
rb-2011l|\
|
|
|
|
rb-2011uas|\
|
|
|
|
rb-2011uas-2hnd)
|
|
|
|
status_led="rb:green:usr"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
rb-411|\
|
|
|
|
rb-411u|\
|
|
|
|
rb-433|\
|
|
|
|
rb-433u|\
|
|
|
|
rb-450|\
|
|
|
|
rb-450g|\
|
|
|
|
rb-493)
|
2010-03-05 21:29:24 +01:00
|
|
|
status_led="rb4xx:yellow:user"
|
|
|
|
;;
|
2014-01-20 11:23:02 +01:00
|
|
|
rb-750)
|
|
|
|
status_led="rb750:green:act"
|
|
|
|
;;
|
2014-02-23 09:11:54 +01:00
|
|
|
rb-911g-2hpnd|\
|
2015-04-07 22:04:14 +02:00
|
|
|
rb-911g-5hpacd|\
|
2014-02-23 09:11:54 +01:00
|
|
|
rb-911g-5hpnd|\
|
|
|
|
rb-912uag-2hpnd|\
|
|
|
|
rb-912uag-5hpnd)
|
|
|
|
status_led="rb:green:user"
|
|
|
|
;;
|
2017-01-04 22:44:54 +01:00
|
|
|
rb-951ui-2hnd | rb-941-2nd)
|
2014-06-18 12:08:08 +02:00
|
|
|
status_led="rb:green:act"
|
|
|
|
;;
|
2014-07-01 15:38:30 +02:00
|
|
|
rb-sxt2n|\
|
|
|
|
rb-sxt5n)
|
|
|
|
status_led="rb:green:power"
|
|
|
|
;;
|
2017-01-15 23:01:03 +01:00
|
|
|
re450|\
|
|
|
|
sc300m)
|
2016-01-07 01:40:48 +01:00
|
|
|
status_led="$board:blue:power"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
routerstation|\
|
|
|
|
routerstation-pro)
|
2009-08-19 21:26:53 +02:00
|
|
|
status_led="ubnt:green:rf"
|
|
|
|
;;
|
2012-01-06 08:20:59 +01:00
|
|
|
rw2458n)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:d3"
|
2012-01-06 08:20:59 +01:00
|
|
|
;;
|
2014-08-11 13:44:51 +02:00
|
|
|
smart-300)
|
|
|
|
status_led="nc-link:green:system"
|
|
|
|
;;
|
2014-09-15 12:19:38 +02:00
|
|
|
qihoo-c301)
|
|
|
|
status_led="qihoo:green:status"
|
|
|
|
;;
|
2016-03-10 20:07:26 +01:00
|
|
|
tellstick-znet-lite)
|
|
|
|
status_led="tellstick:white:system"
|
|
|
|
;;
|
2012-02-08 17:26:25 +01:00
|
|
|
tew-673gru)
|
|
|
|
status_led="trendnet:blue:wps"
|
|
|
|
;;
|
2013-09-23 11:49:02 +02:00
|
|
|
tew-712br|\
|
2015-12-17 10:30:05 +01:00
|
|
|
tew-732br|\
|
|
|
|
tew-823dru)
|
2012-08-22 22:12:24 +02:00
|
|
|
status_led="trendnet:green:power"
|
|
|
|
;;
|
2012-01-25 08:44:45 +01:00
|
|
|
tl-mr3020)
|
|
|
|
status_led="tp-link:green:wps"
|
|
|
|
;;
|
2013-11-11 09:04:47 +01:00
|
|
|
tl-wa750re)
|
|
|
|
status_led="tp-link:orange:re"
|
|
|
|
;;
|
|
|
|
tl-wa850re)
|
|
|
|
status_led="tp-link:blue:re"
|
|
|
|
;;
|
2014-07-13 12:03:41 +02:00
|
|
|
tl-wa860re)
|
|
|
|
status_led="tp-link:green:power"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
tl-mr3220|\
|
|
|
|
tl-mr3220-v2|\
|
|
|
|
tl-mr3420|\
|
|
|
|
tl-mr3420-v2|\
|
|
|
|
tl-wa701nd-v2|\
|
|
|
|
tl-wa801nd-v2|\
|
|
|
|
tl-wa901nd|\
|
|
|
|
tl-wa901nd-v2|\
|
|
|
|
tl-wa901nd-v3|\
|
|
|
|
tl-wa901nd-v4|\
|
|
|
|
tl-wdr3320-v2|\
|
|
|
|
tl-wdr3500|\
|
|
|
|
tl-wr1041n-v2|\
|
|
|
|
tl-wr1043nd|\
|
|
|
|
tl-wr1043nd-v2|\
|
2016-12-16 12:50:34 +01:00
|
|
|
tl-wr1043nd-v4|\
|
2016-09-28 02:02:40 +02:00
|
|
|
tl-wr741nd|\
|
|
|
|
tl-wr741nd-v4|\
|
2016-12-06 16:18:49 +01:00
|
|
|
tl-wa801nd-v3|\
|
2016-09-28 02:02:40 +02:00
|
|
|
tl-wr841n-v1|\
|
|
|
|
tl-wr841n-v7|\
|
|
|
|
tl-wr841n-v8|\
|
|
|
|
tl-wr841n-v11|\
|
|
|
|
tl-wa830re-v2|\
|
|
|
|
tl-wr842n-v2|\
|
|
|
|
tl-wr842n-v3|\
|
|
|
|
tl-wr941nd|\
|
2015-02-04 07:10:20 +01:00
|
|
|
tl-wr941nd-v5)
|
2011-11-01 12:20:44 +01:00
|
|
|
status_led="tp-link:green:system"
|
2009-12-08 13:46:30 +01:00
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
archer-c5|\
|
|
|
|
archer-c7|\
|
|
|
|
tl-wdr4900-v2|\
|
|
|
|
tl-mr10u|\
|
|
|
|
tl-mr12u|\
|
|
|
|
tl-mr13u|\
|
|
|
|
tl-wdr4300|\
|
|
|
|
tl-wr703n|\
|
|
|
|
tl-wr710n|\
|
|
|
|
tl-wr720n-v3|\
|
2016-10-21 11:47:15 +02:00
|
|
|
tl-wr802n-v1|\
|
2016-09-28 02:02:40 +02:00
|
|
|
tl-wr810n|\
|
2016-12-12 15:59:03 +01:00
|
|
|
tl-wr940n-v4|\
|
2015-11-08 21:39:18 +01:00
|
|
|
tl-wr941nd-v6)
|
2011-11-01 12:20:44 +01:00
|
|
|
status_led="tp-link:blue:system"
|
2009-08-19 21:26:53 +02:00
|
|
|
;;
|
2014-04-07 10:00:02 +02:00
|
|
|
tl-wr841n-v9)
|
|
|
|
status_led="tp-link:green:qss"
|
|
|
|
;;
|
2012-01-07 20:36:35 +01:00
|
|
|
tl-wr2543n)
|
|
|
|
status_led="tp-link:green:wps"
|
|
|
|
;;
|
2015-08-17 08:24:04 +02:00
|
|
|
tl-wdr6500-v2)
|
|
|
|
status_led="tp-link:white:system"
|
|
|
|
;;
|
2014-07-14 18:03:35 +02:00
|
|
|
tube2h)
|
|
|
|
status_led="alfa:green:signal4"
|
|
|
|
;;
|
2010-12-20 18:28:34 +01:00
|
|
|
unifi)
|
|
|
|
status_led="ubnt:green:dome"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
uap-pro|\
|
|
|
|
unifiac-lite|\
|
2016-05-11 09:40:00 +02:00
|
|
|
unifiac-pro)
|
2012-12-17 13:28:11 +01:00
|
|
|
status_led="ubnt:white:dome"
|
|
|
|
;;
|
2015-01-22 10:35:46 +01:00
|
|
|
unifi-outdoor-plus)
|
|
|
|
status_led="ubnt:white:front"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
airgateway|\
|
2015-09-16 10:31:40 +02:00
|
|
|
airgatewaypro)
|
2014-07-20 19:30:17 +02:00
|
|
|
status_led="ubnt:white:status"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
whr-g301n|\
|
|
|
|
whr-hp-g300n|\
|
|
|
|
whr-hp-gn|\
|
2011-11-01 12:20:46 +01:00
|
|
|
wzr-hp-g300nh)
|
|
|
|
status_led="buffalo:green:router"
|
2011-10-24 23:49:26 +02:00
|
|
|
;;
|
2012-08-01 14:24:52 +02:00
|
|
|
wlae-ag300n)
|
|
|
|
status_led="buffalo:green:status"
|
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
r6100|\
|
|
|
|
wndap360|\
|
|
|
|
wndr3700|\
|
|
|
|
wndr3700v4|\
|
|
|
|
wndr4300|\
|
|
|
|
wnr2000|\
|
|
|
|
wnr2000-v3|\
|
|
|
|
wnr2200|\
|
|
|
|
wnr612-v2|\
|
|
|
|
wnr1000-v2|\
|
2016-01-19 11:16:04 +01:00
|
|
|
wpn824n)
|
2013-09-21 17:55:54 +02:00
|
|
|
status_led="netgear:green:power"
|
2013-07-28 12:23:37 +02:00
|
|
|
;;
|
2009-08-19 21:26:53 +02:00
|
|
|
wp543)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:diag"
|
2009-08-19 21:26:53 +02:00
|
|
|
;;
|
2016-09-28 02:14:33 +02:00
|
|
|
wpj342|\
|
|
|
|
wpj531|\
|
2015-03-06 15:41:57 +01:00
|
|
|
wpj558)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:green:sig3"
|
2015-03-06 15:41:57 +01:00
|
|
|
;;
|
2016-09-28 02:14:33 +02:00
|
|
|
wrt400n|\
|
2009-08-19 21:26:53 +02:00
|
|
|
wrt160nl)
|
2016-09-28 02:02:40 +02:00
|
|
|
status_led="$board:blue:wps"
|
2009-08-19 21:26:53 +02:00
|
|
|
;;
|
2016-09-28 02:02:40 +02:00
|
|
|
zcn-1523h-2|\
|
|
|
|
zcn-1523h-5)
|
2010-09-03 20:14:37 +02:00
|
|
|
status_led="zcn-1523h:amber:init"
|
|
|
|
;;
|
2013-10-30 07:50:55 +01:00
|
|
|
wlr8100)
|
|
|
|
status_led="sitecom:amber:status"
|
|
|
|
;;
|
2013-02-18 10:56:27 +01:00
|
|
|
esac
|
2009-08-19 21:26:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
set_state() {
|
|
|
|
get_status_led
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
preinit)
|
2013-02-18 10:56:27 +01:00
|
|
|
status_led_blink_preinit
|
2009-08-19 21:26:53 +02:00
|
|
|
;;
|
|
|
|
failsafe)
|
2013-02-18 10:56:27 +01:00
|
|
|
status_led_blink_failsafe
|
2009-08-19 21:26:53 +02:00
|
|
|
;;
|
2014-12-15 11:37:00 +01:00
|
|
|
preinit_regular)
|
|
|
|
status_led_blink_preinit_regular
|
|
|
|
;;
|
2009-08-19 21:26:53 +02:00
|
|
|
done)
|
2011-07-01 21:15:45 +02:00
|
|
|
status_led_on
|
2014-10-14 14:21:36 +02:00
|
|
|
case $(ar71xx_board_name) in
|
2016-07-15 12:00:04 +02:00
|
|
|
gl-ar300m)
|
|
|
|
fw_printenv lc >/dev/null 2>&1 && fw_setenv "bootcount" 0
|
|
|
|
;;
|
2014-10-14 14:21:36 +02:00
|
|
|
qihoo-c301)
|
|
|
|
local n=$(fw_printenv activeregion | cut -d = -f 2)
|
|
|
|
fw_setenv "image${n}trynum" 0
|
|
|
|
;;
|
|
|
|
esac
|
2009-08-19 21:26:53 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|