]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
resolvconf fails with -p
authorSergio E. Nemirowski <sergio@outerface.net>
Sat, 29 May 2021 01:35:16 +0000 (04:35 +0300)
committerGert Doering <gert@greenie.muc.de>
Sat, 6 Nov 2021 19:41:33 +0000 (20:41 +0100)
resolvconf -p
resolvconf: Error: Command not recognized

Signed-off-by: Sergio E. Nemirowski <sergio@outerface.net>
Acked-by: David Sommerseth <davids@openvpn.net>
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 <gert@greenie.muc.de>
contrib/pull-resolv-conf/client.up

index f07697408c6bec8371c86f505a8e7b3bd3458beb..220aeb746c91bb27399e3828cee880ac531be010 100644 (file)
@@ -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