packages/kissdx: use new service functions

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28965 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2011-11-12 01:30:21 +00:00
parent 480a8d9dc1
commit 9e4c97e67d
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2009 OpenWrt.org
# Copyright (C) 2009-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:=kissdx
PKG_VERSION:=0.14.0.b1a
PKG_RELEASE:=7
PKG_RELEASE:=8
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
PKG_SOURCE_URL:=http://kissdx.vidartysse.net

View File

@ -2,6 +2,9 @@
# Copyright (C) 2008 OpenWrt.org
START=65
SERVICE_USE_PID=1
CFGFILE=/tmp/kissdx.conf
create_configfile() {
@ -98,9 +101,9 @@ create_configfile() {
start () {
config_load kissdx
create_configfile
/usr/bin/kissdx -c $CFGFILE -d
service_start /usr/bin/kissdx -c $CFGFILE -d
}
stop() {
killall -9 kissdx
service_stop /usr/bin/kissdx
}