mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 21:17:55 +00:00
bin/reboot: fix parameter order so that we pause when in DEBUG before rebooting
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
27c457f04b
commit
cf065eeba2
@ -3,12 +3,12 @@
|
||||
|
||||
TRACE "Under /bin/reboot"
|
||||
|
||||
if [ “$CONFIG_DEBUG_OUTPUT” = “y” ]; then
|
||||
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
|
||||
read -r -n 1 -s -p "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”
|
||||
if [ "$REPLY" = "r" ] || [ "$REPLY" = "R" ]; then
|
||||
recovery "Reboot call bypassed to go into recovery shell to debug"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user