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