From 9e67149ed19312e3b57e19506d2ec04f849a8f38 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 8 May 2014 15:36:42 +0200 Subject: [PATCH] MT#6995 Provide according blade chassis information if not present --- deployment.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deployment.sh b/deployment.sh index 1b70184..01bcba7 100755 --- a/deployment.sh +++ b/deployment.sh @@ -255,13 +255,14 @@ fi export TRUNK_VERSION # make sure it's available within grml-chroot subshell ## detect environment {{{ +CHASSIS="No physical chassis found" if dmidecode| grep -q 'Rack Mount Chassis' ; then CHASSIS="Running in Rack Mounted Chassis." +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}')" - PRO_EDITION=true -else - CHASSIS="No physical chassis found" + CHASSIS="Running in blade chassis $(dmidecode| awk '/Location In Chassis/ {print $4}')" + PRO_EDITION=true fi if checkBootParam ngcpinst || checkBootParam ngcpsp1 || checkBootParam ngcpsp2 || \