mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-09 00:42:51 -04:00
resolvconf fails with -p
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>
This commit is contained in:
parent
3037d2bd34
commit
e739f41d05
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue