From: Frank Brehm Date: Thu, 10 Dec 2020 07:26:23 +0000 (+0100) Subject: Cosmetic patches X-Git-Tag: 0.1.5~1 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=41beb3587890dbee37bf860b41a1f0cab68f36bc;p=pixelpark%2Fadmin-tools.git Cosmetic patches --- 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