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
This commit is contained in:
John Crispin
2013-07-25 20:28:36 +00:00
parent 022fade3af
commit f647d04afe
2 changed files with 2 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
#!/bin/sh
touch /tmp/failsafe_button
echo ${BUTTON} > /tmp/failsafe_button

View File

@@ -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
}