projects
/
oweals
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mvebu: add missing symbols.
[oweals/openwrt.git]
/
target
/
linux
/
mpc85xx
/
base-files
/
etc
/
diag.sh
1
#!/bin/sh
2
# Copyright (C) 2013 OpenWrt.org
3
4
. /lib/functions/leds.sh
5
. /lib/mpc85xx.sh
6
7
get_status_led() {
8
case $(mpc85xx_board_name) in
9
tl-wdr4900-v1)
10
status_led="tp-link:blue:system"
11
;;
12
esac
13
}
14
15
set_state() {
16
get_status_led
17
18
case "$1" in
19
preinit)
20
status_led_blink_preinit
21
;;
22
23
failsafe)
24
status_led_blink_failsafe
25
;;
26
27
preinit_regular)
28
status_led_blink_preinit_regular
29
;;
30
31
done)
32
status_led_on
33
;;
34
esac
35
}