2
0
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:
Victor Hu
2016-06-14 11:46:04 -04:00
parent 7f818a7066
commit 0dbdd8d5de

View File

@ -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
}