MT#11493 Updated IBM chassis slot detection

> root@sp1 ~ # dmidecode| awk '/Location In Chassis/ {print $4}'
>> Slot2
>> Attached
>> Attached
>> Attached
>> Attached
>> Blade
>> Blade
> root@sp1 ~ # dmidecode| grep 'Location In Chassis'
>>	Location In Chassis: Slot2
>>	Location In Chassis: Attached to System Planar
>>	Location In Chassis: Attached to System Planar
>>	Location In Chassis: Attached to System Planar
>>	Location In Chassis: Attached to System Planar
>>	Location In Chassis: Blade
>>	Location In Chassis: Blade
> root@sp1 ~ # dmidecode| awk '/Location In Chassis: Slot/ {print $4}'
>> Slot2
> root@sp1 ~ #

Change-Id: Ic99db4b258bdfcc14af08b7c49172b30d428cb6c
(cherry picked from commit 710440be1b)
mr3.7.2
Alexander Lutay 11 years ago
parent 858696c81d
commit 1fe7b95f33

@ -350,7 +350,7 @@ if dmidecode| grep -q 'Rack Mount Chassis' ; then
elif dmidecode| grep -q 'Location In Chassis: Not Specified'; then
:
elif dmidecode| grep -q 'Location In Chassis'; then
CHASSIS="Running in blade chassis $(dmidecode| awk '/Location In Chassis/ {print $4}')"
CHASSIS="Running in blade chassis $(dmidecode| awk '/Location In Chassis: Slot/ {print $4}')"
PRO_EDITION=true
fi

Loading…
Cancel
Save