From 419aa05c18521871c572c861018aeed961de361f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 7 Mar 2008 00:01:14 +0000 Subject: [PATCH] -Fix off-by-one bug in the autodetect script with respect to NICs -Relax cipher suite 1, which still requires a password, cipher suite 0 remains banned from access as it cannot be secured at all git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@721 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot/overlay/bin/bmcsetup | 2 +- xCAT-nbroot/overlay/etc/init.d/S10autodetect | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-nbroot/overlay/bin/bmcsetup b/xCAT-nbroot/overlay/bin/bmcsetup index 05245506f..99369e2e0 100755 --- a/xCAT-nbroot/overlay/bin/bmcsetup +++ b/xCAT-nbroot/overlay/bin/bmcsetup @@ -38,6 +38,6 @@ echo "Enabling IPMI v 1.5 MD5 LAN access:" ipmitool lan set 1 auth admin md5 echo "Enabling IPMI v 2.0 LAN access:" -ipmitool lan set 1 cipher_privs uuaaXXXXXXXXXXX +ipmitool lan set 1 cipher_privs uaaaXXXXXXXXXXX diff --git a/xCAT-nbroot/overlay/etc/init.d/S10autodetect b/xCAT-nbroot/overlay/etc/init.d/S10autodetect index 129a31604..7111c8da3 100755 --- a/xCAT-nbroot/overlay/etc/init.d/S10autodetect +++ b/xCAT-nbroot/overlay/etc/init.d/S10autodetect @@ -46,12 +46,12 @@ do else 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 + nic=$(($nic + 1)) fi ;; scsi|raid) @@ -72,12 +72,12 @@ if [ -d /proc/device-tree/vdevice/l-lan* ]; then modprobe ibmveth 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 + nic=$(($nic + 1)) done fi @@ -85,12 +85,12 @@ if [ -d /proc/device-tree/lhea* ]; then modprobe ehea 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 + nic=$(($nic + 1)) done fi