mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 12:20:40 +00:00
Fixed the code based on Er Tao's code review to put the status
check for non OpenPower based servers. OpenPower will use a different method to check that bmc is ready
This commit is contained in:
@ -63,15 +63,15 @@ function cold_reset_bmc() {
|
||||
else
|
||||
# for Non OpenPower servers, just sleep for some set time.
|
||||
sleep 15
|
||||
fi
|
||||
|
||||
TRIES=0
|
||||
# Get the LAN information
|
||||
while ! ipmitool lan print $LANCHAN > /dev/null; do
|
||||
sleep 3
|
||||
let TRIES=TRIES+1
|
||||
if [ $TRIES -gt $TIMEOUT ]; then break; fi
|
||||
done
|
||||
TRIES=0
|
||||
# Get the LAN information
|
||||
while ! ipmitool lan print $LANCHAN > /dev/null; do
|
||||
sleep 3
|
||||
let TRIES=TRIES+1
|
||||
if [ $TRIES -gt $TIMEOUT ]; then break; fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user