mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
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 <troglobit@gmail.com>
13 lines
537 B
Diff
13 lines
537 B
Diff
diff -ru openresolv-3.12.0.orig/resolvconf.in openresolv-3.12.0/resolvconf.in
|
|
--- openresolv-3.12.0.orig/resolvconf.in 2020-12-27 19:05:10.000000000 +0100
|
|
+++ openresolv-3.12.0/resolvconf.in 2023-03-27 00:19:03.365164029 +0200
|
|
@@ -315,6 +315,8 @@
|
|
then
|
|
/usr/bin/systemctl restart $1.service
|
|
fi'
|
|
+ elif [ -x /sbin/initctl ]; then
|
|
+ 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 ]; }
|