There is no reliable cue for how long after the switch between dedicated and shared to continue, so just go with the 10 second sleep

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11682 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-02-25 16:31:58 +00:00
parent 3e73851545
commit cc7042f2ef

View File

@ -77,11 +77,7 @@ elif [ "$IPMIMFG" == 20301 ] ; then
for p in $BMCPORT; do
ipmitool -d $idev raw 0xc 1 1 0xc0 $BMCPORT > /dev/null
NEWPORT=`ipmitool -d $idev raw 0xc 2 1 0xc0 0 0|awk '{print $2}'`
while [ "$NEWPORT" != "$BMCPORT" ]; do
sleep 0.1
NEWPORT=`ipmitool -d $idev raw 0xc 2 1 0xc0 0 0|awk '{print $2}'`
done
sleep 5
sleep 10
let idev=idev-1
done