From 3e54dbbf6077261fdb19cf6005b1ddd58d951640 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 25 Jul 2013 20:28:36 +0000 Subject: base-files: be verbose when entering failsafe due to a button being pressed Signed-off-by: John Crispin SVN-Revision: 37535 --- package/base-files/files/etc/rc.button/failsafe | 2 +- package/base-files/files/lib/preinit/30_failsafe_wait | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'package') diff --git a/package/base-files/files/etc/rc.button/failsafe b/package/base-files/files/etc/rc.button/failsafe index dcdf7de..b372c04 100755 --- a/package/base-files/files/etc/rc.button/failsafe +++ b/package/base-files/files/etc/rc.button/failsafe @@ -1,2 +1,2 @@ #!/bin/sh -touch /tmp/failsafe_button +echo ${BUTTON} > /tmp/failsafe_button 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 } -- cgit v1.1