}
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 a specific number of seconds if SDELAY is set
if [ "${SDELAY}" ]
then
+ good_msg 'Waiting ${SDELAY} seconds...'
sleep ${SDELAY}
else
- sleep 3
+ good_msg 'Hint: Use parameter scandelay[=seconds] if you need waiting here'
fi
}
SDELAY=`parse_opt "${x}"`
;;
scandelay)
- SDELAY=10
+ SDELAY=3
;;
# Module no-loads
doload\=*)
good_msg 'Skipping module load; no modules in the ramdisk!'
fi
-# Delay if needed for USB hardware
+# Apply scan delay if specified
sdelay
# Setup slow USB bits