2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +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
parent d4244e4710
commit 3d101aba14

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"