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="antminer-r1:green:system"
25 status_led="ap132:green:status"
29 status_led="ap136:green:status"
32 status_led="ap147:green:status"
35 status_led="ap135:green:status"
38 status_led="ap81:green:status"
41 status_led="ap83:green:power"
44 status_led="ap96:green:led2"
47 status_led="aw-nr580:green:ready"
50 status_led="bsb:red:sys"
52 bullet-m | rocket-m | rocket-m-xw | nano-m | nanostation-m | nanostation-m-xw | loco-m-xw)
53 status_led="ubnt:green:link4"
56 status_led="ubnt:green:link6"
59 status_led="bhu:green:status"
62 status_led="pcs:green:power"
65 status_led="c-55:green:pwr"
68 status_led="senao:green:pwr"
71 status_led="$(ar71xx_board_name):blue:wan"
74 status_led="tp-link:green:link4"
77 status_led="pcs:amber:power"
80 status_led="pcs:amber:power"
83 status_led="db120:green:status"
92 status_led="d-link:green:power"
95 status_led="d-link:green:status"
98 status_led="d-link:orange:power"
102 status_led="d-link:amber:power"
105 status_led="devolo:green:wifi"
108 status_led="devolo:green:wlan-2g"
111 status_led="devolo:status:wlan"
114 status_led="dr344:green:status"
117 status_led="dragino2:red:system"
120 status_led="engenius:blue:power"
123 status_led="eap7660d:green:ds4"
127 status_led="easylink:green:system"
129 ew-dorin | ew-dorin-router)
130 status_led="dorin:green:status"
133 status_led="belkin:blue:status"
136 status_led="gl-connect:green:lan"
139 status_led="epg5000:amber:power"
142 status_led="esr1750:amber:power"
145 status_led="engenius:amber:power"
148 status_led="hiwifi:blue:system"
152 status_led="alfa:blue:wps"
156 status_led="jjplus:green:led1"
159 status_led="ubnt:green:d22"
162 status_led="mercury:green:system"
165 status_led="mr12:green:power"
168 status_led="mr16:green:power"
171 status_led="mr18:green:tricolor0"
174 status_led="mr600:orange:power"
177 status_led="mr600:blue:power"
180 status_led="mr1750:blue:power"
184 status_led="mr900:blue:power"
188 status_led="wd:blue:power"
191 status_led="wd:blue:power"
195 status_led="planex:green:status"
198 status_led="nbg460n:green:power"
201 status_led="nbg6616:green:power"
204 status_led="nbg6716:white:power"
211 status_led="om2p:blue:power"
215 status_led="om5p:blue:power"
219 status_led="om5pac:blue:power"
222 status_led="omy:green:wlan"
225 status_led="omy:green:power"
228 status_led="onion:amber:system"
231 status_led="pb44:amber:jump1"
236 status_led="rb:green:usr"
238 rb-411 | rb-411u | rb-433 | rb-433u | rb-450 | rb-450g | rb-493)
239 status_led="rb4xx:yellow:user"
242 status_led="rb750:green:act"
249 status_led="rb:green:user"
252 status_led="rb:green:act"
256 status_led="rb:green:power"
258 routerstation | routerstation-pro)
259 status_led="ubnt:green:rf"
262 status_led="rw2458n:green:d3"
265 status_led="nc-link:green:system"
268 status_led="minibox-v1:green:system"
271 status_led="oolite:red:system"
274 status_led="qihoo:green:status"
277 status_led="tellstick:white:system"
280 status_led="tew-632brp:green:status"
283 status_led="trendnet:blue:wps"
288 status_led="trendnet:green:power"
291 status_led="tp-link:green:wps"
294 status_led="tp-link:orange:re"
297 status_led="tp-link:blue:re"
300 status_led="tp-link:green:power"
326 status_led="tp-link:green:system"
340 status_led="tp-link:blue:system"
343 status_led="tp-link:green:qss"
346 status_led="tp-link:green:wps"
349 status_led="tp-link:white:system"
352 status_led="alfa:green:signal4"
355 status_led="ubnt:green:dome"
359 status_led="ubnt:white:dome"
362 status_led="ubnt:white:front"
366 status_led="ubnt:white:status"
372 status_led="buffalo:green:router"
375 status_led="buffalo:green:status"
379 status_led="buffalo:red:diag"
392 status_led="netgear:green:power"
395 status_led="wp543:green:diag"
398 status_led="wpj342:green:sig3"
401 status_led="wpj344:green:status"
404 status_led="wpj531:green:sig3"
407 status_led="wpj558:green:sig3"
410 status_led="wrt400n:blue:wps"
413 status_led="wrt160nl:blue:wps"
415 zcn-1523h-2 | zcn-1523h-5)
416 status_led="zcn-1523h:amber:init"
419 status_led="sitecom:amber:status"
429 status_led_blink_preinit
432 status_led_blink_failsafe
435 status_led_blink_preinit_regular
439 case $(ar71xx_board_name) in
441 local n=$(fw_printenv activeregion | cut -d = -f 2)
442 fw_setenv "image${n}trynum" 0