fixed ping check when building remote servers 87/387/1
authordavidplunkett <dp7642@att.com>
Thu, 7 Feb 2019 15:23:19 +0000 (15:23 +0000)
committerdavidplunkett <dp7642@att.com>
Thu, 7 Feb 2019 15:23:19 +0000 (15:23 +0000)
Change-Id: I0d07f4dc2766e1e819f34fe153e23de83bcf5197
Signed-off-by: davidplunkett <dp7642@att.com>
install_server_os.sh

index 4da8a9b..3e5a911 100755 (executable)
@@ -360,7 +360,7 @@ if [ -z "$NO_APPLY_HW" ]; then
     ## WAIT FOR SERVER TO START REBOOT
     echo "Waiting for server [$SRV_IP] to reboot" `date`
     echo "Waiting for server to shutdown..."
-    (ping -i 5 $SRV_IP &) | awk '{print $0; fflush();} /Destination Host Unreachable/ {x++; if (x>3) {exit;}}'
+    (ping -O -i 5 $SRV_IP &) | awk '{print $0; fflush();} /no answer/ {x++; if (x>3) {exit;}}'
 
     # wait for previous ping to abort
     sleep 10