diff options
author | Mathias Kresin <dev@kresin.me> | 2016-06-19 16:33:44 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-06-20 11:45:44 +0200 |
commit | 551c9c830027b7749895e3ba6b37004570b89e74 (patch) | |
tree | 188852cfe6d07ac38fa7846d9aa7612a1006c8f9 /target/linux/lantiq | |
parent | 32012decc327486bdf6564e6cf55a4acfc744efe (diff) | |
download | upstream-551c9c830027b7749895e3ba6b37004570b89e74.tar.gz upstream-551c9c830027b7749895e3ba6b37004570b89e74.tar.bz2 upstream-551c9c830027b7749895e3ba6b37004570b89e74.zip |
lantiq: diag - switch off the power led on failsafe
This patch is a follow up to commit 4cf3fd4 "add support for indicating
the boot state using three leds".
At the time of writing the patch, I wasn't aware that it's possible to
switch info failsafe after boot (factory reset).
Enabling the failsafe led without disabling the running led causes an
unexpected led colour on devices using a single multicolour led to
indicate the boot state.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq')
-rw-r--r-- | target/linux/lantiq/base-files/etc/diag.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/diag.sh b/target/linux/lantiq/base-files/etc/diag.sh index 71d6f3e511..f6363b34ac 100644 --- a/target/linux/lantiq/base-files/etc/diag.sh +++ b/target/linux/lantiq/base-files/etc/diag.sh @@ -17,6 +17,10 @@ set_state() { ;; failsafe) status_led_off + [ -n "$running" ] && { + status_led="$running" + status_led_off + } status_led="$failsafe" status_led_blink_failsafe ;; |