aboutsummaryrefslogtreecommitdiff
path: root/contrib/pull-resolv-conf/client.down
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-11-14 23:48:49 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-11-14 23:48:49 +0100
commit4b519cf51d02daacb388eb90bd0c5930145d7a0d (patch)
treebb5427a758fe78816cdfdf19d05f0836fa68ac6a /contrib/pull-resolv-conf/client.down
parentMerge branch 'feat_misc' into beta2.2 (diff)
parentFixed compiling issues when using --disable-crypto (diff)
downloadopenvpn-4b519cf51d02daacb388eb90bd0c5930145d7a0d.tar.xz
Merge branch 'bugfix2.1' into beta2.2
Conflicts: options.c - Disagreements about a new included file (forward.h) Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to '')
-rw-r--r--contrib/pull-resolv-conf/client.down5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/pull-resolv-conf/client.down b/contrib/pull-resolv-conf/client.down
index 38c585b..05f2d4d 100644
--- a/contrib/pull-resolv-conf/client.down
+++ b/contrib/pull-resolv-conf/client.down
@@ -34,9 +34,10 @@
# A horrid work around, from a security perspective,
# is to run OpenVPN as root. THIS IS NOT RECOMMENDED. You have
# been WARNED.
+PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
-if [ -x /sbin/resolvconf ] ; then
- /sbin/resolvconf -d "${1}"
+if type resolvconf >/dev/null 2>&1; then
+ resolvconf -d "${1}" -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