diff options
author | John Crispin <john@openwrt.org> | 2014-12-15 10:37:00 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-12-15 10:37:00 +0000 |
commit | 019ea725aad8481c34aaa8b7561c3f9ba6d79e1d (patch) | |
tree | 21b1f4bb215895cc20de6c7833b6e17dfd143cf5 /target/linux/brcm63xx/base-files/etc/diag.sh | |
parent | a5b6b7e41943fec0eb28593ce92b0713990c8d23 (diff) | |
download | mtk-20170518-019ea725aad8481c34aaa8b7561c3f9ba6d79e1d.zip mtk-20170518-019ea725aad8481c34aaa8b7561c3f9ba6d79e1d.tar.gz mtk-20170518-019ea725aad8481c34aaa8b7561c3f9ba6d79e1d.tar.bz2 |
add "preinit_regular" diag.sh set_state argument
This new argument is used right after starting regular preinit (which
happens if failsafe wasn't triggered). The main purpose of "preinit"
argument is to indicate that failsafe can be triggered, however we were
missing a way to inform user that we don't wait for a trigger anymore.
With this change it's clear when failsafe mode can be triggered.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43715
Diffstat (limited to 'target/linux/brcm63xx/base-files/etc/diag.sh')
-rwxr-xr-x | target/linux/brcm63xx/base-files/etc/diag.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh b/target/linux/brcm63xx/base-files/etc/diag.sh index bbf5c0b..f6a65d1 100755 --- a/target/linux/brcm63xx/base-files/etc/diag.sh +++ b/target/linux/brcm63xx/base-files/etc/diag.sh @@ -12,6 +12,9 @@ set_state() { failsafe) status_led_set_timer 50 50 ;; + preinit_regular) + status_led_set_timer 500 500 + ;; done) if [ "${status_led/power}" != "$status_led" ]; then status_led_on |