From: Nicolas Thill Date: Sun, 13 Nov 2011 22:15:47 +0000 (+0000) Subject: packages/frickin: use new service functions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8a00376bfe071f9b72a02df02d1edfa46f7dba10;p=openwrt%2Fsvn-archive%2Fpackages.git packages/frickin: use new service functions SVN-Revision: 29060 --- diff --git a/net/frickin/Makefile b/net/frickin/Makefile index 2265c4ea3..6675953ab 100644 --- a/net/frickin/Makefile +++ b/net/frickin/Makefile @@ -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:=frickin PKG_VERSION:=1.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/frickin diff --git a/net/frickin/files/frickin.init b/net/frickin/files/frickin.init index c6fbb48a4..3e90470ff 100644 --- a/net/frickin/files/frickin.init +++ b/net/frickin/files/frickin.init @@ -1,16 +1,18 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org + START=50 -BIN=frickin -DEFAULT=/etc/default/$BIN -[ -f $DEFAULT ] && . $DEFAULT +SERVICE_DAEMONIZE=1 +SERVICE_WRITE_PID=1 + +DEFAULT=/etc/default/frickin start() { - $BIN $OPTIONS & + [ -f $DEFAULT ] && . $DEFAULT + service_start /usr/sbin/frickin $OPTIONS } stop() { - killall $BIN + service_stop /usr/sbin/frickin } -