From 40755424ee7486e774bcb0ca7582c4bdcb846408 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 27 Sep 2025 07:06:30 +0200 Subject: [PATCH] Fix error in log during boot about unsupported command Sep 27 04:10:06 infix finit[1]: api_cb():Unsupported command (cmd: 13, data: dnsmasq) in runlevel S and 6/0. Fixes #1161 Signed-off-by: Joachim Wiberg --- patches/openresolv/3.13.2/finit-support.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/openresolv/3.13.2/finit-support.patch b/patches/openresolv/3.13.2/finit-support.patch index 6b9be23e..26f383b4 100644 --- a/patches/openresolv/3.13.2/finit-support.patch +++ b/patches/openresolv/3.13.2/finit-support.patch @@ -6,7 +6,7 @@ diff -ru openresolv-3.12.0.orig/resolvconf.in openresolv-3.12.0/resolvconf.in /usr/bin/systemctl restart $1.service fi' + elif [ -x /sbin/initctl ]; then -+ RESTARTCMD="/sbin/initctl -bnq restart \$1" ++ RESTARTCMD="runlevel >/dev/null 2>&1 && /sbin/initctl -bnq restart \$1" elif [ -x /sbin/rc-service ] && { [ -s /libexec/rc/init.d/softlevel ] || [ -s /run/openrc/softlevel ]; }