mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Return error if no /usr/bin/fping is available
This commit is contained in:
parent
aeb96363c1
commit
1e3cf89cf4
@ -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>) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user