summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2023-02-07 17:43:34 +0000
committerSteve McIntyre <steve@einval.com>2023-02-07 17:43:34 +0000
commit7eae728c68eb21385a6b523c170cda6301ed193c (patch)
treeaf078dd2c5712bd5e08412bcf8ea30c6b39f916d
parentb394e798c8242b735d273f002080533132038804 (diff)
downloadsteve-scripts-7eae728c68eb21385a6b523c170cda6301ed193c.zip
Make run-mail work on a v6-only network
Don't limit fping to v4
-rwxr-xr-xrun-mail2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-mail b/run-mail
index 2f58613..304831e 100755
--- a/run-mail
+++ b/run-mail
@@ -75,7 +75,7 @@ vvvecho ()
# Calculate an average ping time to the specified host, in ms.
time_ping () {
NUM_PINGS=5
- time=`fping -4 -qn -c5 -r1 -p1000 -B1.0 $1 2>&1 | \
+ time=`fping -qn -c5 -r1 -p1000 -B1.0 $1 2>&1 | \
awk -F/ '/min\/avg\/max/ {printf("%d\n",$8)}'`
if [ "$time"x = ""x ] ; then
time=$NO_PING