From da545dff4ed4f94399891df2e33329d62ae34c5c Mon Sep 17 00:00:00 2001 From: nico Date: Wed, 9 Nov 2011 23:43:39 +0000 Subject: [PATCH] packages/ptpd: use new service functions git-svn-id: svn://svn.openwrt.org/openwrt/packages@28916 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/ptpd/Makefile | 2 +- net/ptpd/files/ptpd.init | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/net/ptpd/Makefile b/net/ptpd/Makefile index 41816ce0d..50a768201 100644 --- a/net/ptpd/Makefile +++ b/net/ptpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ptpd PKG_VERSION:=2.1.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/ptpd diff --git a/net/ptpd/files/ptpd.init b/net/ptpd/files/ptpd.init index 71b52215b..9cce55c35 100644 --- a/net/ptpd/files/ptpd.init +++ b/net/ptpd/files/ptpd.init @@ -1,11 +1,12 @@ #!/bin/sh /etc/rc.common +# Copyright (C) 2011 OpenWrt.org START=50 start() { - ptpd + service_start /usr/sbin/ptpd } stop() { - killall ptpd + service_stop /usr/sbin/ptpd }