From 484f8019f5a0ef222d5c52fe852069079c029cf6 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 12 Jan 2011 16:23:45 +0100 Subject: [PATCH] Revert "sdelay: reduce function to just one line" due to supposed Bashism. This reverts commit f03de62e7d52017bf44cef35f176e5ab4f28ce92. --- defaults/initrd.scripts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() { -- 2.26.2