2 # Copyright (C) 2009-2013 OpenWrt.org
4 .
/lib
/functions
/leds.sh
8 local board
=$
(ar71xx_board_name
)
12 status_led
="a40:green:status"
15 status_led
="a60:green:status"
18 status_led
="alfa:green:led_8"
21 status_led
="eap7660d:green:ds4"
31 status_led
="$board:green:system"
42 status_led
="$board:green:status"
46 status_led
="ap136:green:status"
49 status_led
="ap147:green:status"
52 status_led
="ap135:green:status"
65 status_led
="$board:green:power"
73 status_led
="$board:green:lan"
76 status_led
="$board:green:led2"
79 status_led
="$board:green:ready"
84 status_led
="buffalo:red:diag"
87 status_led
="$board:red:sys"
96 status_led
="ubnt:green:link4"
99 status_led
="ubnt:green:link6"
102 status_led
="bhu:green:status"
105 status_led
="pcs:green:power"
109 status_led
="$board:green:pwr"
112 status_led
="senao:green:pwr"
117 status_led
="$board:blue:wan"
120 status_led
="$board:blue:wlan"
124 status_led
="$board:blue:wlan2g"
127 status_led
="tp-link:green:link4"
130 status_led
="pcs:amber:power"
133 status_led
="pcs:amber:power"
142 status_led
="d-link:green:power"
145 status_led
="d-link:green:status"
148 status_led
="d-link:orange:power"
152 status_led
="d-link:amber:power"
155 status_led
="d-link:white:status"
158 status_led
="devolo:green:wifi"
161 status_led
="devolo:green:wlan-2g"
164 status_led
="devolo:status:wlan"
167 status_led
="$board:green:sig4"
171 status_led
="$board:red:system"
174 status_led
="$board:blue:status"
177 status_led
="$(ar71xx_board_name):green:system"
180 status_led
="engenius:blue:power"
183 status_led
="engenius:amber:power"
186 status_led
="$board:green:ds4"
190 status_led
="easylink:green:system"
194 status_led
="dorin:green:status"
197 status_led
="belkin:blue:status"
201 status_led
="$board:amber:power"
204 status_led
="engenius:amber:power"
208 status_led
="$board:white:power"
211 status_led
="hiwifi:blue:system"
215 status_led
="alfa:blue:wps"
219 status_led
="jjplus:green:led1"
222 status_led
="$board:green:led1"
225 status_led
="ubnt:green:d22"
228 status_led
="mercury:green:system"
232 status_led
="$board:green:tricolor0"
235 status_led
="$board:orange:power"
238 status_led
="mr600:blue:power"
242 status_led
="mr1750:blue:power"
246 status_led
="mr900:blue:power"
250 status_led
="wd:blue:power"
253 status_led
="wd:blue:power"
257 status_led
="planex:green:status"
260 status_led
="nbg460n:green:power"
270 status_led
="om2p:blue:power"
274 status_led
="om5p:blue:power"
278 status_led
="om5pac:blue:power"
281 status_led
="omy:green:wlan"
284 status_led
="omy:green:power"
287 status_led
="onion:amber:system"
290 status_led
="$board:amber:jump1"
293 status_led
="$board:green:wan"
299 status_led
="rb:green:usr"
308 status_led
="rb4xx:yellow:user"
311 status_led
="rb750:green:act"
323 rb-962uigs-5hact2hnt|\
326 status_led
="rb:green:user"
329 status_led
="rb:green:act"
333 status_led
="rb:green:power"
337 status_led
="$board:blue:power"
341 status_led
="ubnt:green:rf"
344 status_led
="$board:green:d3"
347 status_led
="nc-link:green:system"
350 status_led
="qihoo:green:status"
353 status_led
="tellstick:white:system"
356 status_led
="trendnet:blue:wps"
361 status_led
="trendnet:green:power"
364 status_led
="tp-link:green:wps"
367 status_led
="tp-link:orange:re"
371 status_led
="tp-link:blue:re"
375 status_led
="tp-link:green:power"
378 status_led
="tp-link:white:power"
411 status_led
="tp-link:green:system"
427 status_led
="tp-link:blue:system"
430 status_led
="tp-link:green:qss"
433 status_led
="tp-link:green:wps"
436 status_led
="tp-link:white:system"
439 status_led
="alfa:green:signal4"
442 status_led
="ubnt:green:dome"
447 status_led
="ubnt:white:dome"
450 status_led
="ubnt:white:front"
454 status_led
="ubnt:white:status"
460 status_led
="buffalo:green:router"
463 status_led
="buffalo:green:status"
476 status_led
="netgear:green:power"
479 status_led
="$board:green:diag"
484 status_led
="$board:green:sig3"
487 status_led
="$board:green:sig1"
491 status_led
="$board:blue:wps"
495 status_led
="zcn-1523h:amber:init"
498 status_led
="sitecom:amber:status"
508 status_led_blink_preinit
511 status_led_blink_failsafe
514 status_led_blink_preinit_regular
518 case $
(ar71xx_board_name
) in
520 fw_printenv lc
>/dev
/null
2>&1 && fw_setenv
"bootcount" 0
523 local n
=$
(fw_printenv activeregion | cut
-d = -f 2)
524 fw_setenv
"image${n}trynum" 0