3 # Copyright (C) 2007 OpenWrt.org
11 [ -f "/sys/class/leds/$1/$2" ] && echo "$3" > "/sys/class/leds/$1/$2"
14 status_led_set_timer
() {
15 led_set_attr
$status_led "trigger" "timer"
16 led_set_attr
$status_led "delay_on" "$1"
17 led_set_attr
$status_led "delay_off" "$2"
20 status_led_set_morse
() {
21 led_set_attr
$status_led "trigger" "morse"
22 led_set_attr
$status_led "delay" "$1"
23 led_set_attr
$status_led "message" "$2"
27 led_set_attr
$status_led "trigger" "none"
28 led_set_attr
$status_led "brightness" 255
32 led_set_attr
$status_led "trigger" "none"
33 led_set_attr
$status_led "brightness" 0
39 status_led_set_timer
200 200
42 status_led_set_timer
50 50
This page took 0.049417 seconds and 5 git commands to generate.