summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2007-08-15 23:25:28 +0200
committermaximilian attems <maks@debian.org>2007-08-15 23:25:28 +0200
commit7b0e6ab2ff392502d195de90536395189dc93856 (patch)
tree1f8377df3695b7b926bc2fa7a1a91bb75c065248 /scripts/functions
parent8b4b8b0ced679130f768cb10df8f78c1bb513281 (diff)
scripts/functions: simplify panic()
sleep can take arg 0
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/functions b/scripts/functions
index 81174bf..db223cd 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -60,9 +60,7 @@ panic()
/sbin/usplash_write "QUIT"
fi
# Disallow console access
- if [ -n "${panic}" ] && [ "${panic}" = 0 ]; then
- reboot
- elif [ -n "${panic}" ]; then
+ if [ -n "${panic}" ]; then
sleep ${panic}
reboot
fi