]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commitdiff
match code style
authorDaniel Lenski <dlenski@gmail.com>
Mon, 30 Nov 2020 02:08:05 +0000 (18:08 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 30 Nov 2020 02:13:47 +0000 (18:13 -0800)
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
vpnc-script

index 1a741e496c14825fb2df8682b8f66da4372cd84d..e789e5a7ab5b28ac21684496d045259362ca52ad 100755 (executable)
@@ -143,8 +143,9 @@ elif [ -x /usr/bin/busctl ] && [ ${RESOLVEDENABLED} = 1 ]; then
        # For systemd-resolved (version 229 and above)
        MODIFYRESOLVCONF=modify_resolved_manager_old
        RESTORERESOLVCONF=restore_resolved_manager_old
-elif [ -x /sbin/resolvconf -a "$(basename $(readlink /sbin/resolvconf))" != 'resolvectl' ]; then
+elif [ -x /sbin/resolvconf ] && [ `basename $(readlink /sbin/resolvconf)` != resolvectl ]; then
        # Optional tool on Debian, Ubuntu, Gentoo and FreeBSD
+       # (ignored if symlink to resolvctl, created by some versions of systemd-resolved)
        MODIFYRESOLVCONF=modify_resolvconf_manager
        RESTORERESOLVCONF=restore_resolvconf_manager
 elif [ -x /sbin/netconfig ] && [ ! -f /etc/slackware-version ]; then