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
changes/34/1034/1
Alexander Lutay 10 years ago
parent 39356329d0
commit 710440be1b

@ -368,7 +368,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