sdelay: reduce function to just one line

cleanup-cruft
Fabio Erculiani 14 years ago
parent 25b5a461ba
commit f03de62e7d

@ -883,12 +883,7 @@ 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 otherwise only sleep
# 3 seconds, which is a much better default than 1 second (previous default) # 3 seconds, which is a much better default than 1 second (previous default)
if [ "${SDELAY}" ] sleep ${SDELAY:-3}
then
sleep ${SDELAY}
else
sleep 3
fi
} }
quiet_kmsg() { quiet_kmsg() {

Loading…
Cancel
Save