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:
parent
60388ddf1e
commit
5d4925c317
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user