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 ]; }