resolvconf: We need the onestatus argument
authorRoy Marples <roy@marples.name>
Sun, 8 Sep 2019 21:25:36 +0000 (22:25 +0100)
committerRoy Marples <roy@marples.name>
Sun, 8 Sep 2019 21:25:36 +0000 (22:25 +0100)
As status suffers the same flaw as FreeBSD.
Namely it returns 0 if not running AND not enabled.

sbin/resolvconf/Makefile

index 8411ee5..9b110e8 100644 (file)
@@ -18,7 +18,7 @@ ${f}: ${f}.in
                -e 's:@LIBEXECDIR@:${FILESDIR}:g' \
                -e 's:@VARDIR@:/var/run/resolvconf:g' \
                -e 's:@RESTARTCMD@::g' \
-               -e 's:@STATUSARG@::g' \
+               -e 's:@STATUSARG@:onestatus:g' \
                ${DISTDIR}/$@.in > $@
 .endfor