packages/rarpd: use new service functions
authorNicolas Thill <[email protected]>
Wed, 9 Nov 2011 23:47:06 +0000 (23:47 +0000)
committerNicolas Thill <[email protected]>
Wed, 9 Nov 2011 23:47:06 +0000 (23:47 +0000)
SVN-Revision: 28921

net/rarpd/Makefile
net/rarpd/files/rarpd.init

index b763e62960bebc24a76d435f805f809eb1665b10..5c94d1558871de77f9635a2324885133e63214ad 100644 (file)
@@ -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:=rarpd
 PKG_VERSION:=1.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=ftp://ftp.dementia.org/pub/net-tools
index f973cc8dcb4deb74a70ae9c033a4e5d3d4db2acd..397cd7008a11fecd7b98618065862db54f6080f6 100644 (file)
@@ -1,14 +1,19 @@
 #!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+
 START=50
 
-RARPD=/usr/sbin/rarpd
-DEFAULT=/etc/default/rarpd
+SERVICE_DAEMONIZE=1
+
+PROG="rarpd"
+COMMAND="/usr/sbin/$PROG"
+DEFAULT="/etc/default/$PROG"
 
 start() {
        [ -f $DEFAULT ] && . $DEFAULT
-       $RARPD $OPTIONS
+       service_start $COMMAND -n $OPTIONS
 }
+
 stop() {
-       killall rarpd
+       service_stop $COMMAND
 }