summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index 0b8d1e8..e73874d 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -62,6 +62,9 @@ panic()
# Disallow console access
if [ -n "${panic}" ] && [ "${panic}" = 0 ]; then
reboot
+ elif [ -n "${panic}" ]; then
+ sleep ${panic}
+ reboot
fi
modprobe i8042
modprobe atkbd
@@ -71,7 +74,7 @@ panic()
maybe_break()
{
- if [ x$1 = x${break} ]; then
+ if [ -n "${break}" ]; then
panic "Spawning shell within the initramfs"
fi
}