2 # Copyright (C) 2009-2013 OpenWrt.org
4 . /lib/functions/leds.sh
8 case $(ar71xx_board_name) in
10 status_led="alfa:green:led_8"
13 status_led="eap7660d:green:ds4"
16 status_led="antminer-s1:green:system"
19 status_led="antminer-s3:green:system"
22 status_led="ap132:green:status"
26 status_led="ap136:green:status"
29 status_led="ap147:green:status"
32 status_led="ap135:green:status"
35 status_led="ap81:green:status"
38 status_led="ap83:green:power"
41 status_led="ap96:green:led2"
44 status_led="aw-nr580:green:ready"
47 status_led="bsb:red:sys"
49 bullet-m | rocket-m | rocket-m-xw | nano-m | nanostation-m | nanostation-m-xw | loco-m-xw)
50 status_led="ubnt:green:link4"
53 status_led="ubnt:green:link6"
56 status_led="bhu:green:status"
59 status_led="senao:green:pwr"
62 status_led="$(ar71xx_board_name):blue:wan"
65 status_led="tp-link:green:link4"
68 status_led="db120:green:status"
77 status_led="d-link:green:power"
80 status_led="d-link:green:status"
83 status_led="d-link:orange:power"
87 status_led="d-link:amber:power"
90 status_led="devolo:green:wlan-2g"
93 status_led="devolo:status:wlan"
96 status_led="dragino2:red:system"
99 status_led="engenius:blue:power"
102 status_led="eap7660d:green:ds4"
106 status_led="easylink:green:system"
108 ew-dorin | ew-dorin-router)
109 status_led="dorin:green:status"
112 status_led="belkin:blue:status"
115 status_led="gl-connect:green:lan"
118 status_led="epg5000:amber:power"
121 status_led="esr1750:amber:power"
124 status_led="engenius:amber:power"
127 status_led="hiwifi:blue:system"
131 status_led="alfa:blue:wps"
135 status_led="jjplus:green:led1"
138 status_led="ubnt:green:d22"
141 status_led="mercury:green:system"
144 status_led="mr12:green:power"
147 status_led="mr16:green:power"
150 status_led="mr600:orange:power"
153 status_led="mr600:blue:power"
156 status_led="mr1750:blue:power"
160 status_led="mr900:blue:power"
164 status_led="wd:blue:power"
167 status_led="wd:blue:power"
171 status_led="planex:green:status"
174 status_led="nbg460n:green:power"
177 status_led="zyxel:white:power"
184 status_led="om2p:blue:power"
188 status_led="om5p:blue:power"
191 status_led="onion:amber:system"
194 status_led="pb44:amber:jump1"
199 status_led="rb:green:usr"
201 rb-411 | rb-411u | rb-433 | rb-433u | rb-450 | rb-450g | rb-493)
202 status_led="rb4xx:yellow:user"
205 status_led="rb750:green:act"
212 status_led="rb:green:user"
215 status_led="rb:green:act"
219 status_led="rb:green:power"
221 routerstation | routerstation-pro)
222 status_led="ubnt:green:rf"
225 status_led="rw2458n:green:d3"
228 status_led="nc-link:green:system"
231 status_led="minibox-v1:green:system"
234 status_led="oolite:red:system"
237 status_led="qihoo:green:status"
240 status_led="tew-632brp:green:status"
243 status_led="trendnet:blue:wps"
247 status_led="trendnet:green:power"
250 status_led="tp-link:green:wps"
253 status_led="tp-link:orange:re"
256 status_led="tp-link:blue:re"
259 status_led="tp-link:green:power"
284 status_led="tp-link:green:system"
296 status_led="tp-link:blue:system"
299 status_led="tp-link:green:qss"
302 status_led="tp-link:green:wps"
305 status_led="tp-link:white:system"
308 status_led="alfa:green:signal4"
311 status_led="ubnt:green:dome"
314 status_led="ubnt:white:dome"
317 status_led="ubnt:white:front"
321 status_led="ubnt:white:status"
327 status_led="buffalo:green:router"
330 status_led="buffalo:green:status"
334 status_led="buffalo:red:diag"
345 status_led="netgear:green:power"
348 status_led="wp543:green:diag"
351 status_led="wpj344:green:status"
354 status_led="wpj531:green:sig3"
357 status_led="wpj558:green:sig3"
360 status_led="wrt400n:blue:wps"
363 status_led="wrt160nl:blue:wps"
365 zcn-1523h-2 | zcn-1523h-5)
366 status_led="zcn-1523h:amber:init"
369 status_led="sitecom:amber:status"
379 status_led_blink_preinit
382 status_led_blink_failsafe
385 status_led_blink_preinit_regular
389 case $(ar71xx_board_name) in
391 local n=$(fw_printenv activeregion | cut -d = -f 2)
392 fw_setenv "image${n}trynum" 0