From f9fa2440ea3d590d740c927bd2787cf1c93bbeb3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:58 -0400 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