diff options
author | Chris Buechler <cmb@pfsense.org> | 2009-08-20 17:09:11 -0400 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2009-08-20 17:09:11 -0400 |
commit | 6c0fb3040d334fc479133fa5ac5a1815dd31c646 (patch) | |
tree | f1256a188d091fbb57d71a62d802e45f235c629a /etc | |
parent | 9aca6e5bf63b61bb29c8cc18c962a7d0e79e311d (diff) | |
download | pfsense-6c0fb3040d334fc479133fa5ac5a1815dd31c646.zip pfsense-6c0fb3040d334fc479133fa5ac5a1815dd31c646.tar.gz |
don't log sleep if not sleeping
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.update_bogons.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh index 35092d3..b89b24f 100755 --- a/etc/rc.update_bogons.sh +++ b/etc/rc.update_bogons.sh @@ -6,13 +6,12 @@ echo "rc.update_bogons.sh is starting up." | logger -# 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 for that time. if [ ! $1 ]; 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 |