packages/ptpd: use new service functions

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28916 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2011-11-09 23:43:39 +00:00
parent 31f6bdb615
commit da545dff4e
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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
}