]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commitdiff
Enable resolvconf on FreeBSD too
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 12 Mar 2015 15:28:51 +0000 (15:28 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 12 Mar 2015 15:28:51 +0000 (15:28 +0000)
According to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195359
this should work fine. I've no idea why it wasn't enable for FreeBSD
in the first place; perhaps just lack of testing and conservatism.

Signed-off-by: John Baldwin <jhb@FreeBSD.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
vpnc-script

index cc49aedb7cb953b4c9f7e8cba4bab54231dacb43..4e4fb4b57220f8e0069e4b897ca1ebc25f3026d0 100755 (executable)
@@ -121,7 +121,7 @@ if [ -r /etc/openwrt_release ] && [ -n "$OPENWRT_INTERFACE" ]; then
        include /lib/network
        MODIFYRESOLVCONF=modify_resolvconf_openwrt
        RESTORERESOLVCONF=restore_resolvconf_openwrt
-elif [ -x /sbin/resolvconf ] && [ "$OS" != "FreeBSD" ]; then # Optional tool on Debian, Ubuntu, Gentoo - but not FreeBSD, it seems to work different
+elif [ -x /sbin/resolvconf ]; then # Optional tool on Debian, Ubuntu, Gentoo and FreeBSD
        MODIFYRESOLVCONF=modify_resolvconf_manager
        RESTORERESOLVCONF=restore_resolvconf_manager
 elif [ -x /sbin/netconfig ]; then # tool on Suse after 11.1