From 2275e87b6ff04927d1a28bdc8b1db0b0b9cc58f7 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 20 Aug 2013 16:31:53 -0400 Subject: [PATCH] Try to suppress scary warning at time of checking for bmc port activity --- xCAT-genesis-scripts/bin/bmcsetup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-genesis-scripts/bin/bmcsetup b/xCAT-genesis-scripts/bin/bmcsetup index 758bb299d..a3336706a 100755 --- a/xCAT-genesis-scripts/bin/bmcsetup +++ b/xCAT-genesis-scripts/bin/bmcsetup @@ -101,7 +101,7 @@ elif [ "$IPMIMFG" == 20301 ] ; then # reverts to dhcp then static, which setting a static ip for is # considered invalid CURBMCPORT=`ipmitool -d $idev raw 0xc 2 1 0xc0 0 0 | awk '{print $2}'` - while [ "$CURBMCPORT" -ne "$BMCPORT" ]; do + while [ -z "$CURBMCPORT" -o 0"$CURBMCPORT" -ne "$BMCPORT" ]; do sleep 1 CURBMCPORT=`ipmitool -d $idev raw 0xc 2 1 0xc0 0 0 | awk '{print $2}'` done