aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-06-10 08:24:44 +0000
committerJohn Crispin <john@openwrt.org>2013-06-10 08:24:44 +0000
commite078f649b5a5aa9f585b0a226fd14aad90c084af (patch)
treed11972e364e0bf65873f4b6932b4a6c96104da50 /package/base-files/files
parent9c01967ab761de97882c0a4c9dedbfa2ab93085f (diff)
downloadupstream-e078f649b5a5aa9f585b0a226fd14aad90c084af.tar.gz
upstream-e078f649b5a5aa9f585b0a226fd14aad90c084af.tar.bz2
upstream-e078f649b5a5aa9f585b0a226fd14aad90c084af.zip
procd: make the preinit rules wildcard all buttons for failsafe
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36896
Diffstat (limited to 'package/base-files/files')
-rw-r--r--package/base-files/files/lib/preinit/30_failsafe_wait5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/files/lib/preinit/30_failsafe_wait b/package/base-files/files/lib/preinit/30_failsafe_wait
index 5d6def72ac..3c5ece9f76 100644
--- a/package/base-files/files/lib/preinit/30_failsafe_wait
+++ b/package/base-files/files/lib/preinit/30_failsafe_wait
@@ -78,8 +78,9 @@ failsafe_wait() {
pi_failsafe_net_message=true
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
+ fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true
+ [ -f "/tmp/failsafe_button" ] && FAILSAFE=true
+ [ "$FAILSAFE" = "true" ] && export FAILSAFE && touch /tmp/failsafe
fi
}