diff options
author | Steve McIntyre <steve@einval.com> | 2023-02-07 17:43:34 +0000 |
---|---|---|
committer | Steve McIntyre <steve@einval.com> | 2023-02-07 17:43:34 +0000 |
commit | 7eae728c68eb21385a6b523c170cda6301ed193c (patch) | |
tree | af078dd2c5712bd5e08412bcf8ea30c6b39f916d | |
parent | b394e798c8242b735d273f002080533132038804 (diff) | |
download | steve-scripts-7eae728c68eb21385a6b523c170cda6301ed193c.zip |
Make run-mail work on a v6-only network
Don't limit fping to v4
-rwxr-xr-x | run-mail | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |