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() {