3 # Copyright (C) 2009 OpenWrt.org
12 [ -f "/sys/class/leds/$1/$2" ] && echo "$3" > "/sys/class/leds/$1/$2"
15 status_led_set_timer
() {
16 led_set_attr
$status_led "trigger" "timer"
17 led_set_attr
$status_led "delay_on" "$1"
18 led_set_attr
$status_led "delay_off" "$2"
22 led_set_attr
$status_led "trigger" "none"
23 led_set_attr
$status_led "brightness" 255
27 led_set_attr
$status_led "trigger" "none"
28 led_set_attr
$status_led "brightness" 0
32 case $
(ar71xx_board_name
) in
34 status_led
="alfa:green:led_8"
37 status_led
="ap81:green:status"
40 status_led
="ap83:green:power"
43 status_led
="ap96:green:led2"
46 status_led
="aw-nr580:green:ready"
48 bullet-m | rocket-m | nano-m | nanostation-m
)
49 status_led
="ubnt:green:link4"
52 status_led
="db120:green:status"
56 status_led
="d-link:green:power"
59 status_led
="d-link:green:status"
62 status_led
="d-link:orange:power"
65 status_led
="eap7660d:green:ds4"
68 status_led
="alfa:blue:wps"
71 status_led
="ja76pf:green:led1"
74 status_led
="ubnt:green:d22"
78 status_led
="planex:green:status"
81 status_led
="nbg460n:green:power"
84 status_led
="om2p:blue:power"
87 status_led
="pb44:amber:jump1"
89 rb-411 | rb-411u | rb-433 | rb-433u | rb-450 | rb-450g | rb-493
)
90 status_led
="rb4xx:yellow:user"
92 routerstation | routerstation-pro
)
93 status_led
="ubnt:green:rf"
96 status_led
="rw2458n:green:d3"
99 status_led
="tew-632brp:green:status"
102 status_led
="trendnet:blue:wps"
105 status_led
="tp-link:green:wps"
117 status_led
="tp-link:green:system"
120 status_led
="tp-link:blue:system"
123 status_led
="tp-link:green:wps"
126 status_led
="ubnt:green:dome"
132 status_led
="buffalo:green:router"
135 status_led
="buffalo:red:diag"
138 status_led
="wndr3700:green:power"
141 status_led
="wnr2000:green:power"
144 status_led
="wp543:green:diag"
147 status_led
="wrt400n:blue:wps"
150 status_led
="wrt160nl:blue:wps"
152 zcn-1523h-2 | zcn-1523h-5
)
153 status_led
="zcn-1523h:amber:init"
164 status_led_set_timer
200 200
167 status_led_set_timer
50 50