mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-18 18:06:17 +02:00
d78f71b371
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27174 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
532 B
Bash
21 lines
532 B
Bash
#!/bin/sh
|
|
# Copyright (C) 2009-2011 OpenWrt.org
|
|
|
|
front_led=/sys/class/leds/qube::front
|
|
|
|
set_state() {
|
|
case "$1" in
|
|
preinit)
|
|
[ -d $front_led ] && {
|
|
echo none > $front_led/trigger
|
|
echo 255 > $front_led/brightness
|
|
}
|
|
;;
|
|
done)
|
|
[ -d $front_led ] && {
|
|
echo 0 > $front_led/brightness
|
|
}
|
|
;;
|
|
esac
|
|
}
|