From f03de62e7d52017bf44cef35f176e5ab4f28ce92 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 12 Jan 2011 00:32:35 +0100 Subject: [PATCH] sdelay: reduce function to just one line --- defaults/initrd.scripts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 4da6968..d672e55 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -883,12 +883,7 @@ startLUKS() { sdelay() { # Sleep a specific number of seconds if SDELAY is set otherwise only sleep # 3 seconds, which is a much better default than 1 second (previous default) - if [ "${SDELAY}" ] - then - sleep ${SDELAY} - else - sleep 3 - fi + sleep ${SDELAY:-3} } quiet_kmsg() {