Revert "sdelay: reduce function to just one line" due to supposed Bashism.
authorSebastian Pipping <sebastian@pipping.org>
Wed, 12 Jan 2011 15:23:45 +0000 (16:23 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Wed, 12 Jan 2011 15:24:17 +0000 (16:24 +0100)
This reverts commit f03de62e7d52017bf44cef35f176e5ab4f28ce92.

defaults/initrd.scripts

index d672e5575511320bc4413d6386aa35fc9534968a..4da6968492db40af3fc99875ca6f2db8e5a29a8e 100755 (executable)
@@ -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() {