From d0916d9d036955babd9fa9139779fe531283aa47 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 14 Dec 2016 08:48:16 -0500 Subject: [PATCH] Move needless sleep 20 into ppc64 only branch --- xCAT-genesis-builder/xcat-cmdline.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-genesis-builder/xcat-cmdline.sh b/xCAT-genesis-builder/xcat-cmdline.sh index 67b08484e..a0c465a96 100755 --- a/xCAT-genesis-builder/xcat-cmdline.sh +++ b/xCAT-genesis-builder/xcat-cmdline.sh @@ -42,8 +42,6 @@ while :; do screen -ln < /dev/tty2 > /dev/tty2 2>&1; done & # The section below is just for System P LE hardware discovery -# Need to wait for NIC initialization -sleep 20 ARCH=`uname -m` #For Openpower if [ $ARCH = "ppc64le" ]; then @@ -51,6 +49,8 @@ if [ $ARCH = "ppc64le" ]; then fi if [ $ARCH == 'ppc64' ]; then + # Need to wait for NIC initialization + sleep 20 waittime=2 ALL_NICS=`ip link show | grep -v "^ " | awk '{print $2}' | sed -e 's/:$//' | grep -v lo` for tmp in $ALL_NICS; do