projects
/
openwrt-github
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
070c218b3fdc50945b097b26147fbf01254f9277
[openwrt-github/.git]
/
target
/
linux
/
cobalt
/
base-files
/
etc
/
diag.sh
1
#!/bin/sh
2
# Copyright (C) 2009-2011 OpenWrt.org
3
4
front_led=/sys/class/leds/qube::front
5
6
set_state() {
7
case "$1" in
8
preinit)
9
[ -d $front_led ] && {
10
echo none > $front_led/trigger
11
echo 255 > $front_led/brightness
12
}
13
;;
14
done)
15
[ -d $front_led ] && {
16
echo 0 > $front_led/brightness
17
}
18
;;
19
esac
20
}