[package] fix dibbler-server pid creation (#6906)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@20512 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2010-03-27 13:55:09 +00:00
parent 61b63d1943
commit 970ae9490e
2 changed files with 15 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=dibbler
PKG_VERSION:=0.7.3
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
PKG_SOURCE_URL:=http://klub.com.pl/dhcpv6/dibbler/
@ -138,6 +138,8 @@ endef
define Package/dibbler-server/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dibbler-server $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/dibbler.init $(1)/etc/init.d/
endef
$(eval $(call BuildPackage,dibbler-poslib))

View File

@ -0,0 +1,12 @@
#!/bin/sh /etc/rc.common
START=90
STOP=90
start() {
[ -d /var/lib/dibbler ] || mkdir -p /var/lib/dibbler
dibbler-server
}
stop() {
killall -9 dibbler-server
}