aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-11-03 13:32:02 +0000
committerJohn Crispin <john@openwrt.org>2015-11-03 13:32:02 +0000
commit2350c149b57788a11d1a9fbb60f8a91b9fdfe081 (patch)
tree7d22f5625d13fad96d86a8b53e58c751c7ba9c10 /target/linux/ramips/base-files/etc
parentb0d9e644648a4e8cf427ed0ea91ed3d5320a3914 (diff)
downloadupstream-2350c149b57788a11d1a9fbb60f8a91b9fdfe081.tar.gz
upstream-2350c149b57788a11d1a9fbb60f8a91b9fdfe081.tar.bz2
upstream-2350c149b57788a11d1a9fbb60f8a91b9fdfe081.zip
ramips: add feature to blink led on sysupgrade
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 47373
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index e0dd92ab97..3013d245d6 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -110,6 +110,10 @@ get_status_led() {
mlwg2)
status_led="$board:blue:system"
;;
+ linkits7688| \
+ linkits7688d)
+ [ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
+ ;;
m2m)
status_led="$board:blue:wifi"
;;
@@ -179,7 +183,7 @@ get_status_led() {
}
set_state() {
- get_status_led
+ get_status_led $1
case "$1" in
preinit)
@@ -188,6 +192,7 @@ set_state() {
failsafe)
status_led_blink_failsafe
;;
+ upgrade | \
preinit_regular)
status_led_blink_preinit_regular
;;