From 21a051aa8aeb51a86f6ec9cea98445224d08900b Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Sun, 29 Nov 2020 18:24:06 -0800 Subject: [PATCH] match preexisting code style Signed-off-by: Daniel Lenski --- vpnc-script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vpnc-script b/vpnc-script index 150e0b8..a2bf4a0 100755 --- a/vpnc-script +++ b/vpnc-script @@ -136,7 +136,8 @@ else ifconfig_syntax_ptpv6="" fi -if grep -qs '^hosts.*resolve' /etc/nsswitch.conf 2>/dev/null && (command -v systemd-resolve && systemd-resolve --status) >/dev/null 2>&1; then +grep '^hosts' /etc/nsswitch.conf 2>/dev/null|grep resolve >/dev/null 2>&1 && command systemd-resolve --status >/dev/null 2>&1 +if [ $? = 0 ];then RESOLVEDENABLED=1 else RESOLVEDENABLED=0 -- 2.50.1