#!/bin/sh

if test -f $BBTMP/primarynetDOWN
then
	# Primary server is DOWN, so send data to both ourselves
	# and the primary server
	BBDISPLAYS="$BBDISP `cat $BBTMP/primarynetDOWN`"
	BBDISP="0.0.0.0"
	export BBDISP BBDISPLAYS
	bbtest-net --report --ping --checkresponse
else
	# Primary server is running, so just send results to ourselves
	bbtest-net --report --ping --checkresponse
fi

exit $?

