Add interactive shell too
This commit is contained in:
parent
19b96b4ade
commit
0767984729
|
@ -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"
|
||||||
sleep 30
|
if ! read -t 30; then
|
||||||
reboot -f
|
sleep 30
|
||||||
|
reboot -f
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Call original panic
|
||||||
|
. /scripts/functions
|
||||||
|
panic "$@"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue