From dfba98f2e3862daf60d110447eba794343e6d260 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 5 Feb 2012 15:06:22 +0000 Subject: [PATCH] [packages_10.03.2] chaosvpn: merge r29056 SVN-Revision: 30199 --- net/chaosvpn/Makefile | 7 ++++--- net/chaosvpn/files/chaosvpn.init | 8 ++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/net/chaosvpn/Makefile b/net/chaosvpn/Makefile index 5b602ad2b8..48e79a80c2 100644 --- a/net/chaosvpn/Makefile +++ b/net/chaosvpn/Makefile @@ -1,14 +1,15 @@ -# Copyright (C) 2010 OpenWrt.org -# All rights reserved. +# +# Copyright (C) 2010-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. +# include $(TOPDIR)/rules.mk PKG_NAME:=chaosvpn PKG_VERSION:=2.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz PKG_SOURCE_URL:=http://github.com/downloads/ryd/chaosvpn/ diff --git a/net/chaosvpn/files/chaosvpn.init b/net/chaosvpn/files/chaosvpn.init index 08626387df..d415f5df3f 100644 --- a/net/chaosvpn/files/chaosvpn.init +++ b/net/chaosvpn/files/chaosvpn.init @@ -1,6 +1,10 @@ #!/bin/sh /etc/rc.common +# Copyright (C) 2010-2011 OpenWrt.org + START=99 +SERVICE_DAEMONIZE=1 + start() { /usr/sbin/chaosvpn_config.sh @@ -8,10 +12,10 @@ start() logger "not starting chaosvpn, check your config" exit 1 } - /usr/sbin/chaosvpn -f -c /etc/tinc/chaosvpn.conf >/dev/null 2>&1 & + service_start /usr/sbin/chaosvpn -f -c /etc/tinc/chaosvpn.conf } stop() { - killall chaosvpn + service_stop /usr/sbin/chaosvpn } -- 2.30.2