projects
/
openwrt
/
svn-archive
/
archive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
brcm63xx: migrate platform to common led helper functions
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
brcm63xx
/
base-files
/
etc
/
diag.sh
1
#!/bin/sh
2
# Copyright (C) 2007-2013 OpenWrt.org
3
4
.
/
lib
/
function
s
/
leds.sh
5
.
/
lib
/
brcm63xx.sh
6
7
set_state
() {
8
case
"
$1
"
in
9
preinit
)
10
insmod leds-gpio
11
status_led_set_timer
200 200
12
;;
13
failsafe
)
14
status_led_set_timer
50 50
15
;;
16
done
)
17
if
[
"
${status_led/power}
"
!=
"
$status_led
"
];
then
18
status_led_on
19
else
20
status_led_off
21
fi
22
;;
23
esac
24
}