From c0f9e176c73f0515a9471f1890ed3989785219a1 Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 5 Feb 2012 03:27:37 +0000 Subject: [PATCH] [packages_10.03.2] ptrtd: merge r28926 git-svn-id: svn://svn.openwrt.org/openwrt/branches/packages_10.03.2@30176 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 d771207..4e1aa65 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 8f4ae24..6d7cf68 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.11.0