packages/ipsec-tools: use new service functions

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28911 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2011-11-09 23:38:00 +00:00
parent b1b89f0a63
commit c8a6b91ba1
2 changed files with 10 additions and 10 deletions

View File

@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=ipsec-tools PKG_NAME:=ipsec-tools
PKG_VERSION:=0.8.0 PKG_VERSION:=0.8.0
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/ipsec-tools PKG_SOURCE_URL:=@SF/ipsec-tools

View File

@ -1,17 +1,17 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
# Copyright (C) 2009 OpenWrt.org # Copyright (C) 2009-2011 OpenWrt.org
START=49
# Copyright (C) 2011 Artem Makhutov # Copyright (C) 2011 Artem Makhutov
start() { START=49
setkey -f /etc/ipsec.conf
mkdir /var/racoon/
/usr/sbin/racoon -f /etc/racoon/racoon.conf SERVICE_USE_PID=1
start() {
mkdir -m 0700 -p /var/racoon
[ -f /etc/ipsec.conf ] && /usr/sbin/setkey -f /etc/ipsec.conf
service_start /usr/sbin/racoon -f /etc/racoon.conf
} }
stop() { stop() {
killall racoon service_stop /usr/sbin/racoon
killall racoonctl
} }