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:
parent
b84e44223d
commit
0b9d55fd99
@ -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