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
33 dir-300-b1 | dir-600-b1 | dir-600-b2
)
34 status_led
="d-link:green:status"
37 status_led
="esr-9753:orange:power"
40 set_usb_led
"f5d8235-v1:green:usb"
43 status_led
="fonera20n:green:power"
46 status_led
="hw550-3g:green:status"
49 status_led
="mofi3500-3gn:green:status"
52 status_led
="nbg-419n:green:power"
55 status_led
="nw718:amber:cpu"
58 status_led
="emb:green:status"
61 status_led
="pwh2004:green:power"
64 status_led
="rt-n15:blue:power"
67 status_led
="v22rw-2x2:green:security"
70 status_led
="alfa:blue:wps"
73 status_led
="whr-g300n:green:router"
76 status_led
="buffalo:blue:power"
79 status_led
="wl-351:amber:power"
90 status_led_set_timer
200 200
93 status_led_set_timer
50 50