33c33,35
< me='ipsec setup'		# for messages
---
> proc="/proc/sys/net/ipsec"
> kernelmodule="/lib/modules/`uname -r`/kernel/net/ipsec/ipsec.o"
> uname -r | fgrep -q 2.2 && kernelmodule="/lib/modules/`uname -r`/misc/ipsec.o"
34a37
> me='ipsec setup'		# for messages
35a39,43
> if ! test -d $proc && ! test -r $kernelmodule
> 		then
> 		echo "Kernel support for IPSec not found, aborting."
> 		exit
> fi
86,95c94,103
< 		exit 1
< 	fi
< 	tmp=/var/run/ipsec_setup.st
< 	(
< 		ipsec _realsetup $1
< 		echo "$?" >$tmp
< 	) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1
< 	st=`cat $tmp`
< 	rm -f $tmp
< 	exit $st
---
> 			exit 1
> 		fi
> 		tmp=/var/run/ipsec_setup.st
> 		(
> 			ipsec _realsetup $1
> 			echo "$?" >$tmp
> 		) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1
> 		st=`cat $tmp`
> 		rm -f $tmp
> 		exit $st
