kadnode: update to version 2.1.0

Signed-off-by: Moritz Warning <moritzwarning@web.de>
This commit is contained in:
Moritz Warning
2018-02-10 00:14:43 +01:00
parent ffbdc7e4fd
commit 428c661a35
3 changed files with 17 additions and 57 deletions
+10 -3
View File
@@ -2,10 +2,17 @@
START=95
USE_PROCD=1
KADNODE_BIN=/usr/bin/kadnode
PROG=/usr/bin/kadnode
OPTS=""
boot()
{
# Wait for the loopback interface to be ready
ubus -t 30 wait_for network.interface network.loopback 2>/dev/null
rc_procd start_service
}
xappend() {
local name="$2" value="$1"
OPTS="$OPTS--${name//_/-} ${value//'/\\'}
@@ -56,14 +63,14 @@ start_instance() {
append_opts_boolean "$cfg" dns_proxy_enable lpd_disable fwd_disable ipv4 ipv6
# Close stdin when cmd feature is present
if [ $($KADNODE_BIN --version | grep -c cmd) -eq 1 ]; then
if [ $($PROG --version | grep -c cmd) -eq 1 ]; then
xappend "" "cmd_disable_stdin"
fi
echo "$OPTS" > $CONFIG_FILE
procd_open_instance
procd_set_param command $KADNODE_BIN
procd_set_param command $PROG
procd_set_param file $CONFIG_FILE
procd_set_param stderr 1
procd_set_param stdout 1