From: Sebastian Pipping Date: Wed, 12 Jan 2011 15:23:45 +0000 (+0100) Subject: Revert "sdelay: reduce function to just one line" due to supposed Bashism. X-Git-Tag: v3.4.11~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=484f8019f5a0ef222d5c52fe852069079c029cf6;p=genkernel.git Revert "sdelay: reduce function to just one line" due to supposed Bashism. This reverts commit f03de62e7d52017bf44cef35f176e5ab4f28ce92. --- diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index d672e55..4da6968 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -883,7 +883,12 @@ 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) - sleep ${SDELAY:-3} + if [ "${SDELAY}" ] + then + sleep ${SDELAY} + else + sleep 3 + fi } quiet_kmsg() {