2 # Copyright (C) 2009-2013 OpenWrt.org
4 . /lib/functions/leds.sh
8 local board=$(ar71xx_board_name)
12 status_led="alfa:green:led_8"
15 status_led="eap7660d:green:ds4"
18 status_led="$board:green:system"
21 status_led="$board:green:system"
24 status_led="$board:green:system"
27 status_led="$board:green:status"
31 status_led="ap136:green:status"
34 status_led="ap147:green:status"
37 status_led="ap135:green:status"
40 status_led="$board:green:status"
43 status_led="$board:green:power"
46 status_led="$board:green:led2"
49 status_led="$board:green:ready"
52 status_led="$board:red:sys"
61 status_led="ubnt:green:link4"
64 status_led="ubnt:green:link6"
67 status_led="bhu:green:status"
70 status_led="pcs:green:power"
73 status_led="$board:green:pwr"
76 status_led="senao:green:pwr"
79 status_led="$board:blue:wan"
82 status_led="tp-link:green:link4"
85 status_led="pcs:amber:power"
88 status_led="pcs:amber:power"
91 status_led="$board:green:status"
100 status_led="d-link:green:power"
103 status_led="d-link:green:status"
106 status_led="d-link:orange:power"
110 status_led="d-link:amber:power"
113 status_led="devolo:green:wifi"
116 status_led="devolo:green:wlan-2g"
119 status_led="devolo:status:wlan"
122 status_led="$board:green:status"
125 status_led="$board:green:sig4"
128 status_led="$board:red:system"
131 status_led="engenius:blue:power"
134 status_led="$board:green:ds4"
138 status_led="easylink:green:system"
142 status_led="dorin:green:status"
145 status_led="belkin:blue:status"
148 status_led="gl-connect:green:lan"
151 status_led="$board:amber:power"
154 status_led="$board:amber:power"
157 status_led="engenius:amber:power"
160 status_led="hiwifi:blue:system"
164 status_led="alfa:blue:wps"
168 status_led="jjplus:green:led1"
171 status_led="$board:green:led1"
174 status_led="ubnt:green:d22"
177 status_led="mercury:green:system"
180 status_led="$board:green:power"
183 status_led="$board:green:power"
186 status_led="$board:green:tricolor0"
189 status_led="$board:orange:power"
192 status_led="mr600:blue:power"
196 status_led="mr1750:blue:power"
200 status_led="mr900:blue:power"
204 status_led="wd:blue:power"
207 status_led="wd:blue:power"
211 status_led="planex:green:status"
214 status_led="nbg460n:green:power"
217 status_led="$board:green:power"
220 status_led="$board:white:power"
228 status_led="om2p:blue:power"
232 status_led="om5p:blue:power"
236 status_led="om5pac:blue:power"
239 status_led="omy:green:wlan"
242 status_led="omy:green:power"
245 status_led="onion:amber:system"
248 status_led="$board:amber:jump1"
253 status_led="rb:green:usr"
262 status_led="rb4xx:yellow:user"
265 status_led="rb750:green:act"
272 status_led="rb:green:user"
275 status_led="rb:green:act"
279 status_led="rb:green:power"
283 status_led="ubnt:green:rf"
286 status_led="$board:green:d3"
289 status_led="nc-link:green:system"
292 status_led="$board:green:system"
295 status_led="$board:red:system"
298 status_led="qihoo:green:status"
301 status_led="tellstick:white:system"
304 status_led="$board:green:system"
307 status_led="$board:green:status"
310 status_led="trendnet:blue:wps"
315 status_led="trendnet:green:power"
318 status_led="tp-link:green:wps"
321 status_led="tp-link:orange:re"
324 status_led="tp-link:blue:re"
327 status_led="tp-link:green:power"
355 status_led="tp-link:green:system"
369 status_led="tp-link:blue:system"
372 status_led="tp-link:green:qss"
375 status_led="tp-link:green:wps"
378 status_led="tp-link:white:system"
381 status_led="alfa:green:signal4"
384 status_led="ubnt:green:dome"
389 status_led="ubnt:white:dome"
392 status_led="ubnt:white:front"
396 status_led="ubnt:white:status"
402 status_led="buffalo:green:router"
405 status_led="buffalo:green:status"
409 status_led="buffalo:red:diag"
422 status_led="netgear:green:power"
425 status_led="$board:green:diag"
428 status_led="$board:green:sig3"
431 status_led="$board:green:status"
434 status_led="$board:green:sig3"
437 status_led="$board:green:sig3"
440 status_led="$board:blue:wps"
443 status_led="$board:blue:wps"
446 status_led="$board:green:tricolor0"
449 status_led="$board:green:status"
453 status_led="zcn-1523h:amber:init"
456 status_led="sitecom:amber:status"
466 status_led_blink_preinit
469 status_led_blink_failsafe
472 status_led_blink_preinit_regular
476 case $(ar71xx_board_name) in
478 fw_printenv lc >/dev/null 2>&1 && fw_setenv "bootcount" 0
481 local n=$(fw_printenv activeregion | cut -d = -f 2)
482 fw_setenv "image${n}trynum" 0