#!/bin/sh

# Wait until --listen succeeds.
# This will delay until pluto is started

count=20
until [ $count -eq 0 ] || ipsec whack --listen >/dev/null 2>&1
do
	count=`expr $count - 1`
	sleep 2
done 

