From 5d4925c317ffe16f4e24c1bbc283a42f78bcd2a0 Mon Sep 17 00:00:00 2001 From: ladams00 Date: Fri, 29 Dec 2017 12:08:49 -0800 Subject: [PATCH] Add if/else statement to allow ipmi=on just for Intel S2600BP system boards --- xCAT-genesis-scripts/bin/bmcsetup | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xCAT-genesis-scripts/bin/bmcsetup b/xCAT-genesis-scripts/bin/bmcsetup index 5a732b25f..61c861968 100755 --- a/xCAT-genesis-scripts/bin/bmcsetup +++ b/xCAT-genesis-scripts/bin/bmcsetup @@ -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