projects
/
lede-git
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
af4a1f3c91470e041ccec3bc680c2d81e97cc8bf
[lede-git/.git]
/
target
/
linux
/
ar7
/
base-files
/
etc
/
diag.sh
1
#!/bin/sh
2
# Copyright (C) 2007 OpenWrt.org
3
4
set_led() {
5
local led="$1"
6
local state="$2"
7
[ -d "/sys/class/leds/$led" ] && echo "$state" > "/sys/class/leds/$led/brightness"
8
}
9
10
set_state() {
11
case "$1" in
12
preinit)
13
set_led status 255
14
;;
15
done)
16
set_led status 0
17
;;
18
esac
19
}