3 # Copyright (C) 2007 OpenWrt.org
10 [ -f "/sys/class/leds/$1/$2" ] && echo "$3" > "/sys/class/leds/$1/$2"
13 status_led_set_timer
() {
14 led_set_attr
$status_led "trigger" "timer"
15 led_set_attr
$status_led "delay_on" "$1"
16 led_set_attr
$status_led "delay_off" "$2"
19 status_led_set_morse
() {
20 led_set_attr
$status_led "trigger" "morse"
21 led_set_attr
$status_led "delay" "$1"
22 led_set_attr
$status_led "message" "$2"
26 led_set_attr
$status_led "trigger" "none"
27 led_set_attr
$status_led "brightness" 255
31 led_set_attr
$status_led "trigger" "none"
32 led_set_attr
$status_led "brightness" 0
38 status_led_set_timer
200 200
41 status_led_set_timer
50 50
This page took 0.058382 seconds and 5 git commands to generate.