mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	fix the issue that config alias would remove the original ip on the dev
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user