projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
linux/generic: update to layer7-2.22 for kernels >=2.6.36
[openwrt.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
}
This page took
0.0449270000000001 seconds
and
5
git commands to generate.