mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 13:22:36 +00:00 
			
		
		
		
	Return error if no /usr/bin/fping is available
This commit is contained in:
		@@ -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>) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user