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
This commit is contained in:
xq2005 2013-07-10 09:07:51 +00:00
parent 4fa363e910
commit d8ccaf37e8

View File

@ -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