-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
This commit is contained in:
parent
baa9fe059d
commit
3bf6c124cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user