@ -991,19 +991,13 @@ startLUKS() {
sdelay() {
sdelay() {
# Sleep a specific number of seconds if SDELAY is set
# Sleep a specific number of seconds if SDELAY is set
if [ "${SDELAY}" ]
if [ -n "${SDELAY}" ]
then
then
good_msg "Waiting ${SDELAY} seconds..."
good_msg "Waiting ${SDELAY} seconds..."
sleep ${SDELAY}
sleep ${SDELAY}
elif [ "${CDROOT}" = '1' ]
elif [ "${CDROOT}" = '1' ]
then
then
# many CD/DVD drives require extra sleep, especially when
good_msg 'Hint: Use scandelay[=seconds] if your live medium is slowand boot fails'
# connected via USB. Many people reported that 1 second sleep
# is not enough on their notebooks, that's why sleep 3, when booting
# off a livecd is a better default.
sleep 3
else
good_msg 'Hint: Use parameter scandelay[=seconds] if you need waiting here'
fi
fi
}
}