From a7621d345faf7ed4117489ccf855cef9de4a4fd2 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Fri, 12 Sep 2014 07:50:09 -0400 Subject: [PATCH] defect 4264: fix issue in configib postscript to make it only touch the ifcfg-* files which are passed in from command line params --- xCAT/postscripts/configib | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/configib b/xCAT/postscripts/configib index 682979e7a..4717c1339 100755 --- a/xCAT/postscripts/configib +++ b/xCAT/postscripts/configib @@ -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