From 3bf6c124ccb0f904cd2126ce67adddc3dd279024 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 18 Sep 2009 19:12:19 +0000 Subject: [PATCH] -Fix for PPC systems with multiple virtual network devices or EHEA devices (for example, quad-socket JS23) git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4169 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot/overlay/etc/init.d/S10autodetect | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/xCAT-nbroot/overlay/etc/init.d/S10autodetect b/xCAT-nbroot/overlay/etc/init.d/S10autodetect index bdc95d5c9..a389d4844 100755 --- a/xCAT-nbroot/overlay/etc/init.d/S10autodetect +++ b/xCAT-nbroot/overlay/etc/init.d/S10autodetect @@ -74,7 +74,11 @@ do esac fi done -if [ -d /proc/device-tree/vdevice/l-lan* ]; then +NEEDVETH=0; +for dir in /proc/device-tree/vdevice/l-lan*; do + if [ -d $dir ]; then NEEDVETH=1; fi +done +if [ $NEEDVETH == 1 ]; then modprobe ibmveth for i in /sys/bus/vio/drivers/ibmveth/*/net*; do udhcpc -i eth$nic -b @@ -86,8 +90,11 @@ if [ -d /proc/device-tree/vdevice/l-lan* ]; then nic=$(($nic + 1)) done fi - -if [ -d /proc/device-tree/lhea* ]; then +NEEDEHEA=0; +for dir in /proc/device-tree/lhea*; do + if [ -d $dir ]; then NEEDEHEA=1; fi +done +if [ $NEEDEHEA == 1 ]; then modprobe ehea for i in /sys/bus/ibmebus/devices/port*; do udhcpc -i eth$nic -b