From: Sergio E. Nemirowski Date: Sat, 29 May 2021 01:35:16 +0000 (+0300) Subject: resolvconf fails with -p X-Git-Tag: v2.5.5~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fcce5042865b6bed7dcde5d7d0372ae83d54708;p=thirdparty%2Fopenvpn.git resolvconf fails with -p resolvconf -p resolvconf: Error: Command not recognized Signed-off-by: Sergio E. Nemirowski Acked-by: David Sommerseth Message-Id: <20210529013516.767555-1-sergio@outerface.net> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22467.html Signed-off-by: Gert Doering (cherry picked from commit e739f41d05084c1bc9bfb6c5d49c74de37e53dc7) --- diff --git a/contrib/pull-resolv-conf/client.up b/contrib/pull-resolv-conf/client.up index f07697408..220aeb746 100644 --- a/contrib/pull-resolv-conf/client.up +++ b/contrib/pull-resolv-conf/client.up @@ -91,7 +91,7 @@ out="# resolv.conf autogenerated by ${0} (${dev})${nl}${dns}${ds}${domains}" # use resolvconf if it's available if type resolvconf >/dev/null 2>&1; then - printf "%s\n" "${out}" | resolvconf -p -a "${dev}" + printf "%s\n" "${out}" | resolvconf -a "${dev}" else # Preserve the existing resolv.conf if [ -e /etc/resolv.conf ] ; then