cb599203e239495d065c0b2d07e9ced9020b985d
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
="aw-nr580:green:ready"
43 status_led
="ubnt:green:d22"
46 status_led
="mzk-w04nu:green:status"
49 status_led
="mzk-w300nh:green:status"
52 status_led
="pb44:amber:jump1"
55 status_led
="ubnt:green:rf"
58 status_led
="tew-632brp:green:status"
61 status_led
="tl-wr741nd:green:system"
64 status_led
="tl-wr941nd:green:system"
67 status_led
="wnr2000:green:power"
70 status_led
="wp543:green:diag"
73 status_led
="wrt400n:blue:status"
76 status_led
="wrt160nl:blue:wps"
87 status_led_set_timer
200 200
90 status_led_set_timer
50 50
This page took 0.042333 seconds and 3 git commands to generate.