diff options
author | maximilian attems <maks@debian.org> | 2007-08-15 23:25:28 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2007-08-15 23:25:28 +0200 |
commit | 7b0e6ab2ff392502d195de90536395189dc93856 (patch) | |
tree | 1f8377df3695b7b926bc2fa7a1a91bb75c065248 /scripts/functions | |
parent | 8b4b8b0ced679130f768cb10df8f78c1bb513281 (diff) | |
download | initramfs-tools-7b0e6ab2ff392502d195de90536395189dc93856.tar.gz initramfs-tools-7b0e6ab2ff392502d195de90536395189dc93856.zip |
scripts/functions: simplify panic()
sleep can take arg 0
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
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 |