kadnode: fix newlines in config file

Signed-off-by: Moritz Warning <moritzwarning@web.de>
This commit is contained in:
Moritz Warning 2022-10-30 13:52:04 +01:00 committed by Rosen Penev
parent 90e037b5e5
commit 44b1173d9c
2 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=kadnode
PKG_VERSION:=2.3.0
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE_URL:=https://codeload.github.com/mwarning/KadNode/tar.gz/v$(PKG_VERSION)?
PKG_SOURCE:=kadnode-$(PKG_VERSION).tar.gz

View File

@ -15,8 +15,7 @@ boot()
xappend() {
local name="$2" value="$1"
OPTS="$OPTS--${name//_/-} ${value//'/\\'}
"
OPTS="\n$OPTS--${name//_/-} ${value//'/\\'}"
}
append_opts_list() {
@ -67,7 +66,7 @@ start_instance() {
xappend "" "cmd_disable_stdin"
fi
echo "$OPTS" > $CONFIG_FILE
echo -e "$OPTS" > $CONFIG_FILE
procd_open_instance
procd_set_param command $PROG