projects
/
openwrt
/
staging
/
hauke.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mpc85xx: add user-space support for the TL-WDR4900 v1
[openwrt/staging/hauke.git]
/
target
/
linux
/
mpc85xx
/
base-files
/
etc
/
diag.sh
1
#!/bin/sh
2
# Copyright (C) 2013 OpenWrt.org
3
4
.
/
lib
/
function
s
/
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
insmod leds-gpio
21
insmod ledtrig-default-on
22
insmod ledtrig-timer
23
24
status_led_blink_preinit
25
;;
26
27
failsafe
)
28
status_led_blink_failsafe
29
;;
30
31
done
)
32
status_led_on
33
;;
34
esac
35
}