Skip to content

Commit

Permalink
Merge pull request #2531 from zet809/fix_issue_2501
Browse files Browse the repository at this point in the history
Return error if no /usr/bin/fping is available
  • Loading branch information
gurevichmark authored Feb 23, 2017
2 parents aeb9636 + 1e3cf89 commit 64ce9f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xCAT-client/bin/pping
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<FPING>) {
Expand Down

0 comments on commit 64ce9f4

Please sign in to comment.