mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Skip sleep if an argument is specified.
This commit is contained in:
parent
69de054ac5
commit
6746f41b04
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user