From 595bc352fd49e3ade38a178a06de36f4efe81352 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 5 May 2014 13:36:41 -0400 Subject: [PATCH] defect 4091 --- xCAT/postscripts/confignics | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/confignics b/xCAT/postscripts/confignics index 79f88d867..c299c77a6 100755 --- a/xCAT/postscripts/confignics +++ b/xCAT/postscripts/confignics @@ -180,7 +180,7 @@ if [ "$str_temp" = "mac" ];then fi done else - str_inst_nic=`ifconfig -a | grep -i "$MACADDRESS" | awk '{print $1;}'` + str_inst_nic=`ip -o link | grep -i "$MACADDRESS" | awk '{print $2;}' | sed s/://` fi elif [ `echo $str_temp | grep -E "e(n|th)[0-9]+"` ];then str_inst_nic=$str_temp