defect 4264: fix issue in configib postscript to make it only touch the ifcfg-* files which are passed in from command line params

This commit is contained in:
daniceexi 2014-09-12 07:50:09 -04:00
parent 1a5de449ef
commit a7621d345f

View File

@ -147,9 +147,12 @@ then
else
dir="/etc/sysconfig/network-scripts"
fi
#`rm -f $dir/ifcfg-$nic` 2>&1 1>/dev/null
# nic aliases
`rm -f $dir/ifcfg-ib*` 2>&1 1>/dev/null
# remove the nic configuration files which are included in $NIC_IBNICS
for nic in echo "$NIC_IBNICS" | tr "," "\n"
do
rm -f $dir/ifcfg-$nic 2>&1 1>/dev/null
done
else
loop_number=`lsdev | grep "IP over Infiniband Network Interface" | wc -l`
num=0