packages/ulogd: use new service functions

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28919 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2011-11-09 23:43:49 +00:00
parent 7f1f739d9c
commit a086f94c24
2 changed files with 9 additions and 8 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ulogd PKG_NAME:=ulogd
PKG_VERSION:=1.24 PKG_VERSION:=1.24
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.netfilter.org/pub/ulogd/ \ PKG_SOURCE_URL:=ftp://ftp.netfilter.org/pub/ulogd/ \
@ -26,7 +26,7 @@ endef
define Package/ulogd define Package/ulogd
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=+iptables DEPENDS:=+iptables-mod-ulog
TITLE:=Netfilter userspace logging daemon TITLE:=Netfilter userspace logging daemon
MENU:=1 MENU:=1
endef endef

View File

@ -1,16 +1,17 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2006-2011 OpenWrt.org
START=50 START=50
BIN=ulogd PROG="ulogd"
DEFAULT=/etc/default/$BIN COMMAND="/usr/sbin/$PROG"
LOG_D=/var/log DEFAULT="/etc/default/$PROG"
start() { start() {
[ -f $DEFAULT ] && . $DEFAULT [ -f $DEFAULT ] && . $DEFAULT
$BIN $OPTIONS service_start $COMMAND $OPTIONS
} }
stop() { stop() {
killall $BIN service_stop $COMMAND
} }