3 # Copyright (C) 2009-2010 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
13 [ -f "/sys/class/leds/$1/$2" ] && echo "$3" > "/sys/class/leds/$1/$2"
17 led_set_attr
"${usb_led}" 'trigger' 'timer'
18 led_set_attr
"${usb_led}" 'delay_on' "$1"
19 led_set_attr
"${usb_led}" 'delay_off' "$2"
23 led_set_attr
"${usb_led}" 'trigger' 'none'
24 led_set_attr
"${usb_led}" 'brightness' 255
28 led_set_attr
"${usb_led}" 'trigger' 'none'
29 led_set_attr
"${usb_led}" 'brightness' 0
33 local hardware
=`sed -n /Hardware/s/.*:.//p /proc/cpuinfo`
37 usb_led
='wrt350nv2:green:usb'
48 [ "${usb_device}" = "${DEVICENAME}" ] && usb_led_on
52 [ "${usb_device}" = "${DEVICENAME}" ] && usb_led_off
This page took 0.051071 seconds and 5 git commands to generate.