packages/ptrtd: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28926 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9df4b4e285
commit
0ce1af9dfd
@ -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.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ptrtd
|
PKG_NAME:=ptrtd
|
||||||
PKG_VERSION:=0.5.2
|
PKG_VERSION:=0.5.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://v6web.litech.org/ptrtd/dist/
|
PKG_SOURCE_URL:=http://v6web.litech.org/ptrtd/dist/
|
||||||
|
@ -1,26 +1,15 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
|
|
||||||
START=60
|
START=60
|
||||||
BIN=ptrtd
|
|
||||||
RUN_D=/var/run
|
|
||||||
PID_F=$RUN_D/$BIN.pid
|
|
||||||
|
|
||||||
PREFIX="3ffe:abcd:1234:9876::"
|
PREFIX="3ffe:abcd:1234:9876::"
|
||||||
LEN=64
|
LEN=64
|
||||||
|
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
mkdir -p $RUN_D
|
service_start /usr/sbin/ptrtd -p $PREFIX -l $LEN
|
||||||
$BIN -p $PREFIX -l $LEN
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
[ -f $PID_F ] && kill $(cat $PID_F)
|
service_stop /usr/sbin/ptrtd
|
||||||
}
|
|
||||||
|
|
||||||
restart() {
|
|
||||||
stop
|
|
||||||
sleep 1
|
|
||||||
start
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user