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"
24 status_led
="$board:green:system"
32 status_led
="$board:green:status"
36 status_led
="ap136:green:status"
39 status_led
="ap147:green:status"
42 status_led
="ap135:green:status"
48 status_led
="$board:green:power"
54 status_led
="$board:green:lan"
57 status_led
="$board:green:led2"
60 status_led
="$board:green:ready"
65 status_led
="buffalo:red:diag"
68 status_led
="$board:red:sys"
77 status_led
="ubnt:green:link4"
80 status_led
="ubnt:green:link6"
83 status_led
="bhu:green:status"
86 status_led
="pcs:green:power"
90 status_led
="$board:green:pwr"
93 status_led
="senao:green:pwr"
98 status_led
="$board:blue:wan"
101 status_led
="$board:blue:wlan"
105 status_led
="$board:blue:wlan2g"
108 status_led
="tp-link:green:link4"
111 status_led
="pcs:amber:power"
114 status_led
="pcs:amber:power"
123 status_led
="d-link:green:power"
126 status_led
="d-link:green:status"
129 status_led
="d-link:orange:power"
133 status_led
="d-link:amber:power"
136 status_led
="d-link:white:status"
139 status_led
="devolo:green:wifi"
142 status_led
="devolo:green:wlan-2g"
145 status_led
="devolo:status:wlan"
148 status_led
="$board:green:sig4"
152 status_led
="$board:red:system"
155 status_led
="$board:blue:status"
158 status_led
="$(ar71xx_board_name):green:system"
161 status_led
="engenius:blue:power"
164 status_led
="$board:green:ds4"
168 status_led
="easylink:green:system"
172 status_led
="dorin:green:status"
175 status_led
="belkin:blue:status"
179 status_led
="$board:amber:power"
182 status_led
="engenius:amber:power"
185 status_led
="hiwifi:blue:system"
189 status_led
="alfa:blue:wps"
193 status_led
="jjplus:green:led1"
196 status_led
="$board:green:led1"
199 status_led
="ubnt:green:d22"
202 status_led
="mercury:green:system"
206 status_led
="$board:green:tricolor0"
209 status_led
="$board:orange:power"
212 status_led
="mr600:blue:power"
216 status_led
="mr1750:blue:power"
220 status_led
="mr900:blue:power"
224 status_led
="wd:blue:power"
227 status_led
="wd:blue:power"
231 status_led
="planex:green:status"
234 status_led
="nbg460n:green:power"
237 status_led
="$board:white:power"
247 status_led
="om2p:blue:power"
251 status_led
="om5p:blue:power"
255 status_led
="om5pac:blue:power"
258 status_led
="omy:green:wlan"
261 status_led
="omy:green:power"
264 status_led
="onion:amber:system"
267 status_led
="$board:amber:jump1"
272 status_led
="rb:green:usr"
281 status_led
="rb4xx:yellow:user"
284 status_led
="rb750:green:act"
291 status_led
="rb:green:user"
293 rb-951ui-2hnd | rb-941-2nd
)
294 status_led
="rb:green:act"
298 status_led
="rb:green:power"
301 status_led
="$board:blue:power"
305 status_led
="ubnt:green:rf"
308 status_led
="$board:green:d3"
311 status_led
="nc-link:green:system"
314 status_led
="qihoo:green:status"
317 status_led
="tellstick:white:system"
320 status_led
="trendnet:blue:wps"
325 status_led
="trendnet:green:power"
328 status_led
="tp-link:green:wps"
331 status_led
="tp-link:orange:re"
334 status_led
="tp-link:blue:re"
337 status_led
="tp-link:green:power"
367 status_led
="tp-link:green:system"
383 status_led
="tp-link:blue:system"
386 status_led
="tp-link:green:qss"
389 status_led
="tp-link:green:wps"
392 status_led
="tp-link:white:system"
395 status_led
="alfa:green:signal4"
398 status_led
="ubnt:green:dome"
403 status_led
="ubnt:white:dome"
406 status_led
="ubnt:white:front"
410 status_led
="ubnt:white:status"
416 status_led
="buffalo:green:router"
419 status_led
="buffalo:green:status"
432 status_led
="netgear:green:power"
435 status_led
="$board:green:diag"
440 status_led
="$board:green:sig3"
444 status_led
="$board:blue:wps"
448 status_led
="zcn-1523h:amber:init"
451 status_led
="sitecom:amber:status"
461 status_led_blink_preinit
464 status_led_blink_failsafe
467 status_led_blink_preinit_regular
471 case $
(ar71xx_board_name
) in
473 fw_printenv lc
>/dev
/null
2>&1 && fw_setenv
"bootcount" 0
476 local n
=$
(fw_printenv activeregion | cut
-d = -f 2)
477 fw_setenv
"image${n}trynum" 0