Add interactive shell too

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:57 -04:00
parent 8b45bbabae
commit 4a43285ae2
1 changed files with 9 additions and 3 deletions

View File

@ -57,7 +57,13 @@ panic()
printf " $@\n\n"
# Reboot system
printf "System will reboot in 30 seconds.\n"
printf "System will reboot in 30 seconds. Press any key to spawn a shell instead.\n"
if ! read -t 30; then
sleep 30
reboot -f
fi
# Call original panic
. /scripts/functions
panic "$@"
}