knxd: Fix config file location and init script.

Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
This commit is contained in:
Patrick Grimm 2017-10-06 14:12:48 +02:00
parent 139015087c
commit 53caa112be
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=knxd
PKG_VERSION:=0.14.18
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/knxd/knxd.git
@ -47,7 +47,7 @@ EIB KNX Daemon
endef
define Package/knxd/conffiles
/etc/config/knxd.ini
/etc/knxd.ini
endef
TARGET_CXXFLAGS+= -std=c++0x
@ -72,7 +72,7 @@ define Package/knxd/install
$(INSTALL_BIN) ./files/knxd.init $(1)/etc/init.d/knxd
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/knxd.ini $(1)/etc/config/knxd.ini
$(INSTALL_DATA) ./files/knxd.ini $(1)/etc/knxd.ini
endef
$(eval $(call BuildPackage,knxd))

View file

@ -54,7 +54,7 @@ start_service() {
append_parm args listen_local "listen-local" "/var/run/knxd"
config_get url args url
procd_open_instance
procd_set_param command $PROG $params $url
procd_set_param command $PROG "/etc/knxd.ini"
procd_set_param respawn
procd_close_instance
}