From 62a718cfab0e5351619bdf7ba3af873395816d5f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 5 Feb 2012 03:27:37 +0000 Subject: [PATCH] [packages_10.03.2] ptrtd: merge r28926 SVN-Revision: 30176 --- ipv6/ptrtd/Makefile | 4 ++-- ipv6/ptrtd/files/ptrtd.init | 17 +++-------------- 2 files changed, 5 insertions(+), 16 deletions(-) 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 } -- 2.30.2