projects
/
openwrt-github
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mvebu: add support for the Linksys WRT3200ACM (Rango)
[openwrt-github/.git]
/
target
/
linux
/
adm8668
/
base-files
/
etc
/
diag.sh
1
#!/bin/sh
2
# Copyright (C) 2010 OpenWrt.org
3
4
set_led() {
5
local state="$1"
6
[ -f "/proc/adm8668/sesled" ] && echo "$state" > "/proc/adm8668/sesled"
7
}
8
9
set_state() {
10
case "$1" in
11
preinit)
12
set_led 1
13
;;
14
failsafe)
15
set_led 2
16
;;
17
done)
18
set_led 0
19
;;
20
esac
21
}