Skip sleep if an argument is specified.

This commit is contained in:
Chris Buechler 2009-06-24 20:11:44 -04:00
parent 69de054ac5
commit 6746f41b04

View File

@ -12,7 +12,9 @@ value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'`
echo "rc.update_bogons.sh is sleeping for $value" | logger
# Sleep for that time.
sleep $value
if [ ! $1 ]; then
sleep $value
fi
echo "rc.update_bogons.sh is beginning the update cycle." | logger