projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
targets: base-files: diag.sh does not need to be executable
[openwrt.git]
/
target
/
linux
/
mvebu
/
base-files
/
etc
/
diag.sh
1
#!/bin/sh
2
# Copyright (C) 2014 OpenWrt.org
3
4
. /lib/functions/leds.sh
5
. /lib/mvebu.sh
6
7
get_status_led() {
8
case $(mvebu_board_name) in
9
armada-xp-mamba)
10
status_led="mamba:white:power"
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
failsafe)
23
status_led_blink_failsafe
24
;;
25
preinit_regular)
26
status_led_blink_preinit_regular
27
;;
28
done)
29
status_led_on
30
;;
31
esac
32
}