aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/preinit/30_failsafe_wait
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-07-25 20:28:36 +0000
committerJohn Crispin <blogic@openwrt.org>2013-07-25 20:28:36 +0000
commitf647d04afe488afd40c2fb31b17772258d28f220 (patch)
tree0c5084ea68698f08ad4cee2085cf379e31caf5c6 /package/base-files/files/lib/preinit/30_failsafe_wait
parent022fade3af35c4db464bdad6860c680a1e830837 (diff)
downloadupstream-f647d04afe488afd40c2fb31b17772258d28f220.tar.gz
upstream-f647d04afe488afd40c2fb31b17772258d28f220.tar.bz2
upstream-f647d04afe488afd40c2fb31b17772258d28f220.zip
base-files: be verbose when entering failsafe due to a button being pressed
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37535 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/preinit/30_failsafe_wait')
-rw-r--r--package/base-files/files/lib/preinit/30_failsafe_wait2
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 3c5ece9f76..6bce8ae49f 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
}