From: Nicolas Thill Date: Wed, 9 Nov 2011 23:49:21 +0000 (+0000) Subject: packages/ptrtd: use new service functions X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=9be2583e5dcfcfd1080e2de5eb9cb8bae3ec9623;ds=sidebyside packages/ptrtd: use new service functions SVN-Revision: 28926 --- diff --git a/ipv6/ptrtd/Makefile b/ipv6/ptrtd/Makefile index d77120700f..4e1aa6503c 100644 --- a/ipv6/ptrtd/Makefile +++ b/ipv6/ptrtd/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ptrtd PKG_VERSION:=0.5.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://v6web.litech.org/ptrtd/dist/ diff --git a/ipv6/ptrtd/files/ptrtd.init b/ipv6/ptrtd/files/ptrtd.init index 8f4ae24d32..6d7cf68b69 100644 --- a/ipv6/ptrtd/files/ptrtd.init +++ b/ipv6/ptrtd/files/ptrtd.init @@ -1,26 +1,15 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org START=60 -BIN=ptrtd -RUN_D=/var/run -PID_F=$RUN_D/$BIN.pid PREFIX="3ffe:abcd:1234:9876::" LEN=64 - start() { - mkdir -p $RUN_D - $BIN -p $PREFIX -l $LEN + service_start /usr/sbin/ptrtd -p $PREFIX -l $LEN } stop() { - [ -f $PID_F ] && kill $(cat $PID_F) -} - -restart() { - stop - sleep 1 - start + service_stop /usr/sbin/ptrtd }