From dc579e3c60b7ee04e4940b670036e4b292ef17c2 Mon Sep 17 00:00:00 2001 From: Andreas Gnau Date: Wed, 27 Aug 2025 20:02:20 +0200 Subject: [PATCH] xmppc: Remove the dependency on jq jq is used inside xmppc init script but it is not declared as a dependency. Remove this usage of jq. jq is a complex piece of software that requires security maintenance and adds bloat to the image. Using existing tools like jshn and jsonfilter is preferred where the additional functionality provided by jq is not required. Signed-off-by: Andreas Gnau --- xmppc/files/etc/init.d/xmppc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmppc/files/etc/init.d/xmppc b/xmppc/files/etc/init.d/xmppc index 6452876c6..31f6e80eb 100755 --- a/xmppc/files/etc/init.d/xmppc +++ b/xmppc/files/etc/init.d/xmppc @@ -13,7 +13,7 @@ start_service() { } reload_service() { - xmpp_running="$(ubus call service list '{"name":"xmppc"}' | jq ".xmppc.instances.instance1.running")" + xmpp_running="$(ubus call service list '{"name":"xmppc"}' | jsonfilter -e '$.xmppc.instances.instance1.running')" if [ "${xmpp_running}" = "true" ]; then procd_send_signal xmppc '*' SIGKILL fi