From d8ccaf37e840ed3bea8c08c23b43a9caedc5cc0a Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 10 Jul 2013 09:07:51 +0000 Subject: [PATCH] bug 3679, delete all ib nics' configuration files before configure them git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16931 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/configib | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xCAT/postscripts/configib b/xCAT/postscripts/configib index 46e4e2459..f9bdda48b 100755 --- a/xCAT/postscripts/configib +++ b/xCAT/postscripts/configib @@ -57,6 +57,7 @@ convert_netmask_to_cidr() { } +#if $NIC_IBNICS is not defined, all ib nics' configuration files will be deleted. if [ -z "$NIC_IBNICS" ]; then echo "nothing to do." fi @@ -136,12 +137,9 @@ then else dir="/etc/sysconfig/network-scripts" fi - for nic in `echo "$NIC_IBNICS" | tr "," "\n"` - do - `rm -f $dir/ifcfg-$nic` 2>&1 1>/dev/null + #`rm -f $dir/ifcfg-$nic` 2>&1 1>/dev/null # nic aliases - `rm -f $dir/ifcfg-$nic:*` 2>&1 1>/dev/null - done + `rm -f $dir/ifcfg-ib*` 2>&1 1>/dev/null else loop_number=`lsdev | grep "IP over Infiniband Network Interface" | wc -l` num=0