From 41beb3587890dbee37bf860b41a1f0cab68f36bc Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 10 Dec 2020 08:26:23 +0100 Subject: [PATCH] Cosmetic patches --- bin/start-openfortivpn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/start-openfortivpn b/bin/start-openfortivpn index 76baf4d..eaf4a56 100755 --- a/bin/start-openfortivpn +++ b/bin/start-openfortivpn @@ -120,13 +120,15 @@ check_preferences() { error "Did not found Gateway IP address in '${RED}${OFVPN_CONFIG}${NORMAL}'." all_ok="n" else - echo "Checking Gateway IP '${GREEN}${gateway_ip}${NORMAL}' ..." - if ping -q -c 2 -w 2 "${gateway_ip}" ; then + info "Checking Gateway IP '${GREEN}${gateway_ip}${NORMAL}' ..." + echo + if ping -q -c 1 -w 2 "${gateway_ip}" ; then debug "Gateway IP '${CYAN}${gateway_ip}${NORMAL}' is okay." else error "Could not ping '${RED}${gateway_ip}${NORMAL}'." all_ok="n" fi + echo fi fi -- 2.39.5