2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Add if/else statement to allow ipmi=on just for Intel S2600BP system boards

This commit is contained in:
ladams00 2017-12-29 12:08:49 -08:00
parent 60388ddf1e
commit 5d4925c317

View File

@ -481,8 +481,13 @@ for user in $BMCUS; do
fi
TRIES=0
# Enable the channel and ipmi link for the specified user
while ! ipmitool -d $idev channel setaccess $LANCHAN $USERSLOT link=on ipmi=on; do
# Enable the channel link for the specified user
if [ "$IPMIMFG" == 343 -a "$XPROD" == 124 ]; then # For Intel S2600BP system boards
cmd="ipmitool -d $idev channel setaccess $LANCHAN $USERSLOT link=on ipmi=on"
else
cmd="ipmitool -d $idev channel setaccess $LANCHAN $USERSLOT link=on"
fi
while ! eval $cmd; do
sleep 1
let TRIES=TRIES+1
if [ $TRIES -gt $TIMEOUT ]; then break; fi