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:
Thierry Laurion 2023-10-24 13:13:47 -04:00
parent 27c457f04b
commit cf065eeba2
No known key found for this signature in database
GPG Key ID: E7B4A71658E36A93

View File

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