|
|
@@ -31,6 +31,8 @@ fs_wait_for_key () {
|
|
|
lock $keypress_wait
|
|
|
{
|
|
|
while [ $timer -gt 0 ]; do
|
|
|
+ pi_failsafe_net_message=true \
|
|
|
+ preinit_net_echo "Please press button now to enter failsafe"
|
|
|
echo "$timer" >$keypress_sec
|
|
|
timer=$(($timer - 1))
|
|
|
sleep 1
|
|
|
@@ -88,9 +90,6 @@ failsafe_wait() {
|
|
|
}
|
|
|
grep -q 'failsafe=' /proc/cmdline && FAILSAFE=true && export FAILSAFE
|
|
|
if [ "$FAILSAFE" != "true" ]; then
|
|
|
- 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
|
|
|
[ -f "/tmp/failsafe_button" ] && FAILSAFE=true && echo "- failsafe button "`cat /tmp/failsafe_button`" was pressed -"
|
|
|
[ "$FAILSAFE" = "true" ] && export FAILSAFE && touch /tmp/failsafe
|