projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a03f89dc31c55bf4f50d727a1c4c0f1729c55653
[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
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
}