Project

General

Profile

« Previous | Next » 

Revision 2a87b190

Added by Scott Ullrich almost 16 years ago

Move sleep to correct location

View differences:

etc/rc.update_bogons.sh
6 6

  
7 7
echo "rc.update_bogons.sh is starting up." | logger
8 8

  
9
# Grab a random value  
10
value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'`
11

  
12 9
# Sleep for that time, unless an argument is specified.
13 10
if [ "$1" = "" ]; then
14 11
	if [ ! -f /var/run/donotsleep_bogons ]; then
12
		# Grab a random value  
13
		value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'`
15 14
		echo "rc.update_bogons.sh is sleeping for $value" | logger
15
    	sleep $value
16 16
	fi
17
    sleep $value
18 17
fi    
19 18

  
20 19
echo "rc.update_bogons.sh is beginning the update cycle." | logger

Also available in: Unified diff