From fc55bc9fd799297292f3e17122bf8d15c123b6b3 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 20 Aug 2014 08:51:03 -0400 Subject: [PATCH] fix the issue that config alias would remove the original ip on the dev --- xCAT/postscripts/configeth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/configeth b/xCAT/postscripts/configeth index 08bf81cd2..20189e375 100755 --- a/xCAT/postscripts/configeth +++ b/xCAT/postscripts/configeth @@ -628,7 +628,7 @@ else str_nic_status='down' str_his_file=${str_cfg_dir}xcat_history_important - str_history=`ip addr show dev $str_nic_name | grep inet | grep -iv dynamic | grep -iv link | awk '{print $2}'` + str_history=`ip addr show dev $str_nic_name | grep inet | grep -iv dynamic | grep -iv link | grep $str_nic_name | awk '{print $2}'` old_ifs=$IFS IFS=$'\n' array_ip_old_temp=($str_history)