From: Paul Donald Date: Sun, 11 Feb 2024 22:44:42 +0000 (+0100) Subject: umdns: prevent a few 'uci: Entry not found' X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=dd8850756d046f5afc89722bc1bbb1b25f34e24a;p=openwrt%2Fstaging%2Fneocturne.git umdns: prevent a few 'uci: Entry not found' pass '-q' switch to uci to prevent spurious output Signed-off-by: Paul Donald --- diff --git a/package/network/services/umdns/files/umdns.init b/package/network/services/umdns/files/umdns.init index 1ae1cccb03..7f25595f24 100644 --- a/package/network/services/umdns/files/umdns.init +++ b/package/network/services/umdns/files/umdns.init @@ -8,7 +8,7 @@ PROG=/usr/sbin/umdns IFACES="" load_ifaces() { - local network="$(uci get umdns.@umdns[-1].network)" + local network="$(uci -q get umdns.@umdns[-1].network)" for n in $network; do local device json_load "$(ifstatus $n)" @@ -29,7 +29,7 @@ reload_service() { } start_service() { - local network="$(uci get umdns.@umdns[-1].network)" + local network="$(uci -q get umdns.@umdns[-1].network)" procd_open_instance procd_set_param command "$PROG" @@ -42,7 +42,7 @@ start_service() { done procd_add_raw_trigger "instance.update" 5000 "/bin/ubus" "call" "umdns" "reload" procd_close_trigger - [ "$(uci get umdns.@umdns[-1].jail)" = 1 ] && procd_add_jail umdns ubus log + [ "$(uci -q get umdns.@umdns[-1].jail)" = 1 ] && procd_add_jail umdns ubus log procd_close_instance }