mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-07 19:34:26 +00:00
To Squash: changes to reboot were not ash compliant
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
3fb84f0b42
commit
15f1d0b77a
@ -3,13 +3,13 @@
|
||||
|
||||
TRACE "Under /bin/reboot"
|
||||
|
||||
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
|
||||
#Generalize user prompt to continue reboot or go to recovery shell
|
||||
read -p "Press any key to continue reboot or 'r' to go to recovery shell: " -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Rr]$ ]]; then
|
||||
recovery "Reboot call bypassed to go into recovery shell to debug"
|
||||
fi
|
||||
if [ “$CONFIG_DEBUG_OUTPUT” = “y” ]; then
|
||||
#Generalize user prompt to continue reboot or go to recovery shell
|
||||
read -r -p -n1 "Press any key to continue reboot or ‘r’ to go to recovery shell: " REPLY
|
||||
echo
|
||||
if [ “$REPLY” = “r” ] || [ “$REPLY” = “R” ]; then
|
||||
recovery “Reboot call bypassed to go into recovery shell to debug”
|
||||
fi
|
||||
fi
|
||||
|
||||
# Shut down TPM
|
||||
|
Loading…
x
Reference in New Issue
Block a user