2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 01:26:38 +00:00

Add to regular expression for ethernet devices to handle the

predictable nic naming conventions that are starting to be used
in the later OS releases
This commit is contained in:
Victor Hu 2015-09-16 09:46:53 -04:00 committed by GONG Jie
parent b84e44223d
commit 0b9d55fd99

View File

@ -315,7 +315,7 @@ do
continue
fi
fi
if [ `echo $key | grep -E 'e(n|th|m)[0-9a-z]+'` ];then
if [ `echo $key | grep -E 'e(n|th|m)[0-9a-zA-Z]+'` ];then
str_nic_type="ethernet"
elif [ `echo $key | grep -E 'ib[0-9]+'` ];then
str_nic_type="infiniband"