diff options
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-x | etc/rc.update_bogons.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh index 332aeb7..d07cfb9 100755 --- a/etc/rc.update_bogons.sh +++ b/etc/rc.update_bogons.sh @@ -7,13 +7,12 @@ echo "rc.update_bogons.sh is starting up." | logger # Sleep for that time, unless an argument is specified. + if [ "$1" = "" ]; then - if [ ! -f /var/run/donotsleep_bogons ]; then - # Grab a random value - value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'` - echo "rc.update_bogons.sh is sleeping for $value" | logger - sleep $value - fi + # Grab a random value + value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'` + echo "rc.update_bogons.sh is sleeping for $value" | logger + sleep $value fi echo "rc.update_bogons.sh is beginning the update cycle." | logger |