From 710440be1b14f73d8d6bae6c36c3c7f3287d75d2 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Tue, 17 Feb 2015 14:34:09 +0100 Subject: [PATCH] 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 --- deployment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment.sh b/deployment.sh index a880892..3b5b930 100755 --- a/deployment.sh +++ b/deployment.sh @@ -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