From 1e3cf89cf46c37728d3af4b1617074cf33c99f8e Mon Sep 17 00:00:00 2001 From: ertaozh Date: Wed, 22 Feb 2017 04:48:40 -0500 Subject: [PATCH] Return error if no /usr/bin/fping is available --- xCAT-client/bin/pping | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-client/bin/pping b/xCAT-client/bin/pping index 09bf8cdba7..af13369d4e 100755 --- a/xCAT-client/bin/pping +++ b/xCAT-client/bin/pping @@ -162,6 +162,11 @@ sub fping_pping { } else { + if (!-x '/usr/bin/fping') + { + print "fping is not available, please install missing package fping.\n"; + exit 1; + } open(FPING, "fping " . join(' ', @$nodes) . " 2>&1 |") or die("Cannot open fping pipe: $!"); } while () {