mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +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:
parent
d4244e4710
commit
3d101aba14
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user