git-svn-id: svn://svn.openwrt.org/openwrt/branches/packages_10.03.2@30176
3c298f89-4303-0410-b956-
a3cf2f4a3e73
-# 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.
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=ptrtd
PKG_VERSION:=0.5.2
PKG_NAME:=ptrtd
PKG_VERSION:=0.5.2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://v6web.litech.org/ptrtd/dist/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://v6web.litech.org/ptrtd/dist/
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
-BIN=ptrtd
-RUN_D=/var/run
-PID_F=$RUN_D/$BIN.pid
PREFIX="3ffe:abcd:1234:9876::"
LEN=64
PREFIX="3ffe:abcd:1234:9876::"
LEN=64
- mkdir -p $RUN_D
- $BIN -p $PREFIX -l $LEN
+ service_start /usr/sbin/ptrtd -p $PREFIX -l $LEN
- [ -f $PID_F ] && kill $(cat $PID_F)
-}
-
-restart() {
- stop
- sleep 1
- start
+ service_stop /usr/sbin/ptrtd