update coreutils to latest stable version
[openadk.git] / package / openswan / files / ipsec.init
blobec305538c368a49380f80f3a169786bada4a325f
1 #!/bin/sh
2 #PKG openswan
3 #INIT 60
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${ipsec:-NO}" = x"NO" && exit 0
10 test x"$ipsec" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 /usr/libexec/ipsec/setup start
16 stop)
17 /usr/libexec/ipsec/setup stop
19 restart)
20 sh $0 stop
21 sleep 3
22 sh $0 start
25 echo "Usage: $0 {start | stop | restart}"
26 exit 1
28 esac
29 exit $?