From 7b0e6ab2ff392502d195de90536395189dc93856 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Wed, 15 Aug 2007 23:25:28 +0200 Subject: scripts/functions: simplify panic() sleep can take arg 0 --- scripts/functions | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripts/functions') 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 -- cgit v1.2.3