From 2fe6e7300ad2e114e2ff82d724668a924b2e56ed Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 6 Mar 2008 18:46:46 +0000 Subject: [PATCH] Attempt more tolerance of slow ethernet issues git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@713 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot/overlay/etc/init.d/S10autodetect | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/xCAT-nbroot/overlay/etc/init.d/S10autodetect b/xCAT-nbroot/overlay/etc/init.d/S10autodetect index dd6ba8fec..129a31604 100755 --- a/xCAT-nbroot/overlay/etc/init.d/S10autodetect +++ b/xCAT-nbroot/overlay/etc/init.d/S10autodetect @@ -47,6 +47,11 @@ do modprobe $MOD udhcpc -i eth$nic -b nic=$(($nic + 1)) + let extrat=0 + until ifconfig eth$nic|grep "inet addr" || [ $extrat == 30 ]; do + sleep 1 + let extrat=extrat+1 + done fi ;; scsi|raid) @@ -68,6 +73,11 @@ if [ -d /proc/device-tree/vdevice/l-lan* ]; then for i in /sys/bus/vio/drivers/ibmveth/*/net*; do udhcpc -i eth$nic -b nic=$(($nic + 1)) + let extrat=0 + until ifconfig eth$nic|grep "inet addr" || [ $extrat == 30 ]; do + sleep 1 + let extrat=extrat+1 + done done fi @@ -76,8 +86,13 @@ if [ -d /proc/device-tree/lhea* ]; then for i in /sys/bus/ibmebus/devices/port*; do udhcpc -i eth$nic -b nic=$(($nic + 1)) + let extrat=0 + until ifconfig eth$nic|grep "inet addr" || [ $extrat == 30 ]; do + sleep 1 + let extrat=extrat+1 + done done fi -#Give 10 seconds for things to quiesce. -sleep 10 +#Give 5 seconds for things to quiesce. +sleep 5