From 8f1dc3f7c401aef00d151cedff864afea1ecc462 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 1 Apr 2015 14:07:09 +0100 Subject: [PATCH] ts-host-ping-check: Do not run if host is being reused Assume it was done at install time. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- ts-host-ping-check | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ts-host-ping-check b/ts-host-ping-check index 74c008c..ca8920c 100755 --- a/ts-host-ping-check +++ b/ts-host-ping-check @@ -26,6 +26,8 @@ our ($whhost) = @ARGV; $whhost ||= 'host'; our $ho= selecthost($whhost); +exit 0 if $ho->{SharedReady}; + $_ = `ping -D -i 0.2 -c 100 $ho->{Ip} | tee /dev/stderr`; m/\b([0-9.]+)% packet loss\b/ or die "$_ ?"; -- 2.39.5