From: Fabio Erculiani Date: Tue, 11 Jan 2011 23:32:35 +0000 (+0100) Subject: sdelay: reduce function to just one line X-Git-Tag: v3.4.11~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f03de62e7d52017bf44cef35f176e5ab4f28ce92;p=genkernel.git sdelay: reduce function to just one line --- 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() {