2009-05-31 21:55:35 +08:00
|
|
|
#!/bin/sh
|
2011-06-15 04:05:09 +08:00
|
|
|
# Copyright (C) 2009-2011 OpenWrt.org
|
|
|
|
|
|
|
|
front_led=/sys/class/leds/qube::front
|
2009-05-31 21:55:35 +08:00
|
|
|
|
|
|
|
set_state() {
|
|
|
|
case "$1" in
|
|
|
|
preinit)
|
2011-06-15 04:05:09 +08:00
|
|
|
[ -d $front_led ] && {
|
|
|
|
echo none > $front_led/trigger
|
|
|
|
echo 255 > $front_led/brightness
|
2009-05-31 21:55:35 +08:00
|
|
|
}
|
|
|
|
;;
|
|
|
|
done)
|
2011-06-15 04:05:09 +08:00
|
|
|
[ -d $front_led ] && {
|
|
|
|
echo 0 > $front_led/brightness
|
2009-05-31 21:55:35 +08:00
|
|
|
}
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|