diff --git a/contrib/pull-resolv-conf/client.down b/contrib/pull-resolv-conf/client.down index 0cbb476582f..42ca2d471cb 100644 --- a/contrib/pull-resolv-conf/client.down +++ b/contrib/pull-resolv-conf/client.down @@ -44,7 +44,7 @@ if type resolvconf >/dev/null 2>&1; then resolvconf -d "${dev}" -f elif [ -e /etc/resolv.conf.ovpnsave ] ; then # cp + rm rather than mv in case it's a symlink - cp /etc/resolv.conf.ovpnsave /etc/resolv.conf + cat /etc/resolv.conf.ovpnsave > /etc/resolv.conf rm -f /etc/resolv.conf.ovpnsave fi