mirror of https://github.com/hak5/openwrt-owl.git
base-files: be verbose when entering failsafe due to a button being pressed
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37535owl
parent
dee22d069f
commit
3e54dbbf60
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
touch /tmp/failsafe_button
|
echo ${BUTTON} > /tmp/failsafe_button
|
||||||
|
|
|
@ -79,7 +79,7 @@ failsafe_wait() {
|
||||||
preinit_net_echo "Please press button now to enter failsafe"
|
preinit_net_echo "Please press button now to enter failsafe"
|
||||||
pi_failsafe_net_message=false
|
pi_failsafe_net_message=false
|
||||||
fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true
|
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
|
[ "$FAILSAFE" = "true" ] && export FAILSAFE && touch /tmp/failsafe
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue