Do no delay if scandelay[=seconds] is not specified (bug #323317 again)

cleanup-cruft
Sebastian Pipping 14 years ago
parent 30aa8490fa
commit 1051223a63

@ -916,13 +916,13 @@ startLUKS() {
} }
sdelay() { sdelay() {
# Sleep a specific number of seconds if SDELAY is set otherwise only sleep # Sleep a specific number of seconds if SDELAY is set
# 3 seconds, which is a much better default than 1 second (previous default)
if [ "${SDELAY}" ] if [ "${SDELAY}" ]
then then
good_msg 'Waiting ${SDELAY} seconds...'
sleep ${SDELAY} sleep ${SDELAY}
else else
sleep 3 good_msg 'Hint: Use parameter scandelay[=seconds] if you need waiting here'
fi fi
} }

@ -117,7 +117,7 @@ do
SDELAY=`parse_opt "${x}"` SDELAY=`parse_opt "${x}"`
;; ;;
scandelay) scandelay)
SDELAY=10 SDELAY=3
;; ;;
# Module no-loads # Module no-loads
doload\=*) doload\=*)
@ -286,7 +286,7 @@ else
good_msg 'Skipping module load; no modules in the ramdisk!' good_msg 'Skipping module load; no modules in the ramdisk!'
fi fi
# Delay if needed for USB hardware # Apply scan delay if specified
sdelay sdelay
# Setup slow USB bits # Setup slow USB bits

Loading…
Cancel
Save