projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ssb: Update to latest upstream version of ssb.
[openwrt.git]
/
target
/
linux
/
brcm-2.4
/
base-files
/
etc
/
diag.sh
1
#!/bin/sh
2
# Copyright (C) 2006 OpenWrt.org
3
4
set_led
() {
5
local
led
=
"
$1
"
6
local
state
=
"
$2
"
7
[
-f
"/proc/diag/led/
$1
"
] &&
echo
"
$state
"
>
"/proc/diag/led/
$1
"
8
}
9
10
set_state
() {
11
case
"
$1
"
in
12
preinit
)
13
set_led dmz
1
14
set_led diag
1
15
set_led power
0
16
;;
17
failsafe
)
18
set_led diag f
19
set_led power f
20
set_led dmz f
21
;;
22
done
)
23
set_led dmz
0
24
set_led diag
0
25
set_led power
1
26
;;
27
esac
28
}
This page took
0.043825 seconds
and
5
git commands to generate.