]> Frank Brehm's Git Trees - pixelpark/admin-tools.git/commitdiff
Cosmetic patches
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 10 Dec 2020 07:26:23 +0000 (08:26 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 10 Dec 2020 07:26:23 +0000 (08:26 +0100)
bin/start-openfortivpn

index 76baf4d83bbcf9a483392e86c9f963a1eddecc3f..eaf4a56bf33f7f5e5b69340557b75772cdbd5ddc 100755 (executable)
@@ -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