From 401f264df9777d192fbc68b4176cc51bc35a2fe6 Mon Sep 17 00:00:00 2001 From: Kilian Cavalotti Date: Thu, 23 Feb 2017 14:52:35 -0800 Subject: [PATCH] confignics: fix regexp for Ethernet checks --- xCAT/postscripts/confignics | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/confignics b/xCAT/postscripts/confignics index c651ecc1c..f754b2a2e 100755 --- a/xCAT/postscripts/confignics +++ b/xCAT/postscripts/confignics @@ -202,7 +202,7 @@ if [ "$str_temp" = "mac" ];then else 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-9a-z]+"` ];then +elif [ `echo $str_temp | grep -E "e(n|th|m)[0-9a-zA-Z]+"` ];then str_inst_nic=$str_temp fi @@ -247,7 +247,7 @@ if [ $bool_remove -eq 1 ];then for str_temp_nic in ${array_nics_temp[@]} do #the nic type should be ethernet - echo $str_temp_nic | grep -E "e(n|th)[0-9a-z]+" + echo $str_temp_nic | grep -E "e(n|th|m)[0-9a-zA-Z]+" if [ $? -ne 0 ];then continue fi