From 263f0f685103d95d1b8e15b22b0d9b263be4fc3e Mon Sep 17 00:00:00 2001 From: bybai Date: Tue, 23 Feb 2016 01:43:30 -0500 Subject: [PATCH] polish fix 630 --- xCAT/postscripts/confignetwork | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/xCAT/postscripts/confignetwork b/xCAT/postscripts/confignetwork index 56a2fe8ef..a54814cfc 100755 --- a/xCAT/postscripts/confignetwork +++ b/xCAT/postscripts/confignetwork @@ -252,10 +252,14 @@ function sort_nics_device_order { for i in `echo "$base_nic_dev" |sed 's/@/ /g'` do temp_base_nic_type=`find_nic_type "$i"` - temp_base_nic_type_one=$temp_base_nic_type - #all base nic devices types should be the same - if [ x"$temp_base_nic_type" != x"$temp_base_nic_type_one" ]; then - break + if [ x"$temp_base_nic_type_one" = x ]; then + temp_base_nic_type_one=$temp_base_nic_type + else + #all base nic devices types should be the same + if [ x"$temp_base_nic_type" != x"$temp_base_nic_type_one" ]; then + break + fi + temp_base_nic_type_one=$temp_base_nic_type fi done else