florian 476ca0ea41 [package] ipsec-tools: update to 0.8.0, add init script
Signed-off-by: Artem Makhutov <artem@makhutov.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28102 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-28 12:08:31 +00:00

18 lines
257 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2009 OpenWrt.org
START=49
# Copyright (C) 2011 Artem Makhutov
start() {
setkey -f /etc/ipsec.conf
mkdir /var/racoon/
/usr/sbin/racoon -f /etc/racoon/racoon.conf
}
stop() {
killall racoon
killall racoonctl
}