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="ap81:green:status"
37 status_led="ap83:green:power"
40 status_led="ap96:green:led2"
43 status_led="aw-nr580:green:ready"
45 bullet-m | rocket-m | nano-m | nanostation-m)
46 status_led="ubnt:green:link4"
49 status_led="dir-600-a1:green:power"
52 status_led="dir-615c1:green:status"
55 status_led="dir825b1:orange:power"
58 status_led="eap7660d:green:ds4"
61 status_led="ja76pf:green:led1"
64 status_led="ubnt:green:d22"
67 status_led="mzk-w04nu:green:status"
70 status_led="mzk-w300nh:green:status"
73 status_led="nbg460n:green:power"
76 status_led="om2p:blue:power"
79 status_led="pb44:amber:jump1"
81 rb-411 | rb-411u | rb-433 | rb-433u | rb-450 | rb-450g | rb-493)
82 status_led="rb4xx:yellow:user"
84 routerstation | routerstation-pro)
85 status_led="ubnt:green:rf"
88 status_led="tew-632brp:green:status"
98 status_led="tp-link:green:system"
101 status_led="tp-link:blue:system"
104 status_led="ubnt:green:dome"
107 status_led="whr-hp-g300n:green:router"
109 wndr3700 | wndr3700v2)
110 status_led="wndr3700:green:power"
113 status_led="wnr2000:green:power"
116 status_led="wp543:green:diag"
119 status_led="wrt400n:green:status"
122 status_led="wrt160nl:blue:wps"
125 status_led="wzr-hp-g300nh:green:router"
127 zcn-1523h-2 | zcn-1523h-5)
128 status_led="zcn-1523h:amber:init"
139 status_led_set_timer 200 200
142 status_led_set_timer 50 50