From 26fbc1fa6786b1f49610f0a806bc47cb8259a5d9 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 23 Nov 2023 20:39:16 +0300 Subject: [PATCH] Fix ping on modern FreeBSD --- helper/ping | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helper/ping b/helper/ping index 180f487..2582dbe 100755 --- a/helper/ping +++ b/helper/ping @@ -2,8 +2,7 @@ proto=$1 shift -[ "$proto" = "6" ] || proto="" -if ping${proto} -c 1 $@ > state/ping-out ; then +if ping -${proto} -c 1 $@ > state/ping-out ; then tail -1 < state/ping-out else cat state/ping-out -- 2.44.0