Check the expect binary before issue lpar_netboot.expect

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5555 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2010-03-23 05:32:49 +00:00
parent 52e47c0fdc
commit bc8b54bbd8

View File

@ -135,6 +135,9 @@ sub do_rnetboot {
if ( !-x $cmd ) {
return( [RC_ERROR,"Command not installed: $cmd"] );
}
if (!-x "/usr/bin/expect" ) {
return( [RC_ERROR,"Command not installed: /usr/bin/expect"] );
}
#######################################
# Save user name and passwd of hcp to
# environment variables.