diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 00:37:44 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 00:37:44 -0400 |
commit | 2a87b190d68a59b4eb84ad611a223d3aac742066 (patch) | |
tree | 8813ba877642f70375b644a9ff1d51d7fcae8c1b | |
parent | b089ad3aa0e3e774c1b5820b8ae2ae978df527b5 (diff) | |
download | pfsense-2a87b190d68a59b4eb84ad611a223d3aac742066.zip pfsense-2a87b190d68a59b4eb84ad611a223d3aac742066.tar.gz |
Move sleep to correct location
-rwxr-xr-x | etc/rc.update_bogons.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh index 980d047..332aeb7 100755 --- a/etc/rc.update_bogons.sh +++ b/etc/rc.update_bogons.sh @@ -6,15 +6,14 @@ echo "rc.update_bogons.sh is starting up." | logger -# Grab a random value -value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'` - # 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 - sleep $value fi echo "rc.update_bogons.sh is beginning the update cycle." | logger |