diff options
author | John Crispin <john@openwrt.org> | 2013-07-25 20:28:36 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-07-25 20:28:36 +0000 |
commit | 3e54dbbf6077261fdb19cf6005b1ddd58d951640 (patch) | |
tree | 4bfcd5cda3347919763cdc9ec62e003d1dd4869e /package/base-files/files/lib/preinit | |
parent | dee22d069fe8ce8380a33b5e1d202e95df70b99e (diff) | |
download | mtk-20170518-3e54dbbf6077261fdb19cf6005b1ddd58d951640.zip mtk-20170518-3e54dbbf6077261fdb19cf6005b1ddd58d951640.tar.gz mtk-20170518-3e54dbbf6077261fdb19cf6005b1ddd58d951640.tar.bz2 |
base-files: be verbose when entering failsafe due to a button being pressed
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37535
Diffstat (limited to 'package/base-files/files/lib/preinit')
-rw-r--r-- | package/base-files/files/lib/preinit/30_failsafe_wait | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/preinit/30_failsafe_wait b/package/base-files/files/lib/preinit/30_failsafe_wait index 3c5ece9..6bce8ae 100644 --- a/package/base-files/files/lib/preinit/30_failsafe_wait +++ b/package/base-files/files/lib/preinit/30_failsafe_wait @@ -79,7 +79,7 @@ failsafe_wait() { preinit_net_echo "Please press button now to enter failsafe" pi_failsafe_net_message=false fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true - [ -f "/tmp/failsafe_button" ] && FAILSAFE=true + [ -f "/tmp/failsafe_button" ] && FAILSAFE=true && echo "- failsafe button "`cat /tmp/failsafe_button`" was pressed -" [ "$FAILSAFE" = "true" ] && export FAILSAFE && touch /tmp/failsafe fi } |