From d28d09b339c8f40db7ccc17892c686897438b279 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Wed, 9 Nov 2011 23:43:33 +0000 Subject: [PATCH] packages/opennhrp: use new service functions SVN-Revision: 28914 --- net/opennhrp/Makefile | 4 ++-- net/opennhrp/files/opennhrp.init | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/net/opennhrp/Makefile b/net/opennhrp/Makefile index 3881b21e8..880803ce7 100644 --- a/net/opennhrp/Makefile +++ b/net/opennhrp/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2009-2010 OpenWrt.org +# Copyright (C) 2009-2011 OpenWrt.org # Copyright (C) 2009 Jakob Pfeiffer # # This is free software, licensed under the GNU General Public License v2. @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=opennhrp PKG_VERSION:=0.12.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/opennhrp diff --git a/net/opennhrp/files/opennhrp.init b/net/opennhrp/files/opennhrp.init index 706e0181c..8831287ea 100755 --- a/net/opennhrp/files/opennhrp.init +++ b/net/opennhrp/files/opennhrp.init @@ -1,13 +1,15 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2009 OpenWrt.org -START=50 +# Copyright (C) 2009-2011 OpenWrt.org # Copyright (C) 2009 Jakob Pfeiffer +START=50 + +SERVICE_USE_PID=1 + start() { - /usr/sbin/opennhrp -d + service_start /usr/sbin/opennhrp -d } stop() { - killall opennhrp + service_stop /usr/sbin/opennhrp } - -- 2.30.2