kadnode: fix newlines in config file
authorMoritz Warning <redacted>
Sun, 30 Oct 2022 12:52:04 +0000 (13:52 +0100)
committerRosen Penev <redacted>
Mon, 31 Oct 2022 19:29:09 +0000 (12:29 -0700)
Signed-off-by: Moritz Warning <redacted>
net/kadnode/Makefile
net/kadnode/files/kadnode.init

index 554824bc3e08dbd1556f6ac0364d77b31f325815..1adfdf1681fc02d49f38e606476bd31fbde71779 100644 (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
index fb2ad509d8c07b144e1231205c586d218c88032d..89a10dedf879499527816b7a5aaeb5b0f44eaf9c 100755 (executable)
@@ -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
git clone https://git.99rst.org/PROJECT