2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00

MTM: some systems have FRU entries, but set to "NONE"

This commit is contained in:
Kilian Cavalotti
2017-05-25 17:24:23 -07:00
parent 7067220128
commit b7676f7448

View File

@@ -77,7 +77,7 @@ if [ -r /sys/devices/virtual/dmi/id/product_name ]; then #x86
if [ $? -eq 0 ]; then
m=`echo "$FRU" | awk -F': ' '/Product Manufacturer/ {print $2}'`
n=`echo "$FRU" | awk -F': ' '/Product Name/ {print $2}'`
if [ -z "$n" ]; then
if [ -z "$n" -o "$n" == "NONE" ]; then
n=`echo "$FRU" | awk -F': ' '/Product Part Number/ {print $2}'`
fi
else