3 # Copyright (C) 2010 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 $(ramips_board_name) in
34 status_led="edimax:green:power"
37 status_led="argus-atp52b:green:run"
39 dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-615-h1 | dir-615-d | dir-620-a1)
40 status_led="d-link:green:status"
43 status_led="d-link:green:wps"
46 status_led="d-link:blue:power"
49 status_led="esr-9753:orange:power"
52 status_led="f5d8235v2:blue:router"
55 status_led="fonera20n:green:power"
58 status_led="rt-n13u:power"
62 status_led="hw550-3g:green:status"
65 status_led="mofi3500-3gn:green:status"
68 status_led="nbg-419n:green:power"
71 status_led="nw718:amber:cpu"
74 status_led="emb:green:status"
77 status_led="psr-680w:red:wan"
80 status_led="pwh2004:green:power"
83 status_led="rt-n15:blue:power"
86 status_led="asus:green:wps"
88 rt-n56u | wl-330n | wl-330n3g)
89 status_led="asus:blue:power"
92 status_led="sl-r7205:green:status"
96 status_led="trendnet:green:wps"
99 status_led="v11st-fe:green:status"
102 status_led="v22rw-2x2:green:security"
105 status_led="w306r-v20:green:sys"
108 status_led="alfa:blue:wps"
111 status_led="wcr150gn:amber:power"
114 status_led="whr-g300n:green:router"
117 status_led="buffalo:blue:power"
120 status_led="wl-351:amber:power"
123 status_led="wr512:green:wps"
126 status_led="mzkw300nh2:green:power"
129 status_led="ur336:green:wps"
132 status_led="xdxrn502j:green:power"
143 status_led_set_timer 200 200
146 status_led_set_timer 50 50