[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:
parent
61b63d1943
commit
970ae9490e
@ -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))
|
||||
|
12
ipv6/dibbler/files/dibbler.init
Normal file
12
ipv6/dibbler/files/dibbler.init
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user