From 5e45a68a4a68afe92be61d73d95ebb6fb81074cb Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 10 Jun 2013 08:24:13 +0000 Subject: [PATCH] base-files: fix failsafe via button press entering failsafe by pressing a button during boot was broken for procd as init Signed-off-by: John Crispin SVN-Revision: 36891 --- package/base-files/files/lib/preinit/30_failsafe_wait | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/preinit/30_failsafe_wait b/package/base-files/files/lib/preinit/30_failsafe_wait index bcf24f8bb7..5d6def72ac 100644 --- a/package/base-files/files/lib/preinit/30_failsafe_wait +++ b/package/base-files/files/lib/preinit/30_failsafe_wait @@ -63,7 +63,6 @@ fs_wait_for_key () { keypressed=1 [ "$(cat $keypress_true)" = "true" ] && keypressed=0 - [ -f "/tmp/failsafe_button" ] && keypressed=1 rm -f $keypress_true rm -f $keypress_wait @@ -80,6 +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 && export FAILSAFE + [ -f "/tmp/failsafe_button" ] && FAILSAFE=true && export FAILSAFE && rm /tmp/failsafe_button fi } -- 2.25.1