From: Mitko Haralanov Date: Fri, 10 Jan 2014 16:41:34 +0000 (-0500) Subject: truescale.cmds: Fix blade type discovery on new M420 Dell blades X-Git-Tag: compat-rdma-2014-01-30~6^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=4d7f0c0bac8b9dbacc59953cb2638678f5fb3500;p=~emulex%2Fcompat-rdma.git truescale.cmds: Fix blade type discovery on new M420 Dell blades The new type of blades have a different format for the serial number so we need to adjust how we discover the bay number. Signed-off-by: Mitko Haralanov --- diff --git a/ofed_scripts/truescale.cmds b/ofed_scripts/truescale.cmds index 7eed316..f719248 100644 --- a/ofed_scripts/truescale.cmds +++ b/ofed_scripts/truescale.cmds @@ -201,7 +201,7 @@ setup_qme() sn="$(dmidecode -t 2 | grep -i serial | tail -1)" case ${sn} in *[sS]erial\ [nN]umber*) - bay="$(echo $sn | sed -e 's/\.$//' -e 's/.*\.0*//')" + bay="$(echo $sn | sed -e 's/\.$//' -e 's/.*\.0*//' -e 's/[abcd]$//')" if [ ${bay} -gt ${#set[@]} ]; then warn_and_log Unexpected QME7342 bay info: ${sn}, no Tx params return