[vpnc-script] breakage with commit 6f87b0fe

Mike Miller mtmiller at debian.org
Wed Jun 21 12:14:29 PDT 2017


On Tue, Dec 27, 2016 at 05:27:03 -0300, Thiago Padilha wrote:
> Signed-off-by: Thiago de Arruda <tpadilha84 at gmail.com>
> ---
>  vpnc-script | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

> diff --git a/vpnc-script b/vpnc-script
> index 6302987..0714bf1 100755
> --- a/vpnc-script
> +++ b/vpnc-script
> @@ -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 /usr/bin/busctl ]; then  # For systemd-resolved (version 229 and above)
> +elif [ -n "$(busctl --version 2>/dev/null)" ] && [ "$(systemctl is-active systemd-resolved)" = "active" ] && [ "$(readlink /etc/resolv.conf)" = "/run/systemd/resolve/resolv.conf" ]; then  # For systemd-resolved (version 229 and above)
>  	MODIFYRESOLVCONF=modify_resolved_manager
>  	RESTORERESOLVCONF=restore_resolved_manager
>  elif [ -x /sbin/resolvconf ]; then # Optional tool on Debian, Ubuntu, Gentoo and FreeBSD

Ping, this is an important bug fix to vpnc-script, master is currently
broken on any system with systemd installed but systemd-resolved not in
use.

-- 
mike



More information about the openconnect-devel mailing list