From: nico Date: Wed, 9 Nov 2011 23:49:21 +0000 (+0000) Subject: packages/ptrtd: use new service functions X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;h=0ce1af9dfd9ce368a9890fd8b9d40a41d06b6895;p=packages.git packages/ptrtd: use new service functions git-svn-id: svn://svn.openwrt.org/openwrt/packages@28926 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/ipv6/ptrtd/Makefile b/ipv6/ptrtd/Makefile index d77120700..4e1aa6503 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 8f4ae24d3..6d7cf68b6 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 }