Add interactive shell too

This commit is contained in:
Joshua Boniface 2021-12-12 20:05:11 -05:00
parent 19b96b4ade
commit 0767984729
1 changed files with 9 additions and 3 deletions

View File

@ -57,7 +57,13 @@ panic()
printf " $@\n\n" printf " $@\n\n"
# Reboot system # 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 sleep 30
reboot -f reboot -f
fi
# Call original panic
. /scripts/functions
panic "$@"
} }