From 6746f41b04e1fbbbc473febbbc5744087ea68cc6 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Wed, 24 Jun 2009 20:11:44 -0400 Subject: [PATCH] Skip sleep if an argument is specified. --- etc/rc.update_bogons.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh index 5a96e7cc74..35092d3759 100755 --- a/etc/rc.update_bogons.sh +++ b/etc/rc.update_bogons.sh @@ -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