[package] ipsec-tools: update to 0.8.0, add init script
[openwrt/svn-archive/archive.git] / net / ipsec-tools / files / racoon.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2009 OpenWrt.org
3 START=49
4 # Copyright (C) 2011 Artem Makhutov
5
6 start() {
7 setkey -f /etc/ipsec.conf
8 mkdir /var/racoon/
9
10 /usr/sbin/racoon -f /etc/racoon/racoon.conf
11 }
12
13 stop() {
14 killall racoon
15 killall racoonctl
16 }
17