From ce1b8ac4f612cb6af491023af8ac7e9604be937b Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 13 Dec 2021 14:09:21 -0500 Subject: [PATCH] Allow pausing before failure reboot. --- templates/install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/install.sh b/templates/install.sh index 496f398..537674d 100755 --- a/templates/install.sh +++ b/templates/install.sh @@ -520,9 +520,10 @@ cleanup() { if [[ -z ${DONE} ]]; then case ${install_option} in on) - echo "A fatal error occurred; rebooting in 10 seconds." - sleep 10 - reboot + echo "A fatal error occurred; rebooting in 10 seconds. Press any key to spawn a shell." + if ! read -t 10; then + reboot + fi ;; *) # noop