]> git.openfabrics.org - ~emulex/compat-rdma_3.12.git/commitdiff
truescale.cmds: Fix blade type discovery on new M420 Dell blades
authorMitko Haralanov <mitko.haralanov@intel.com>
Fri, 10 Jan 2014 16:41:34 +0000 (11:41 -0500)
committerMike Marciniszyn <mike.marciniszyn@intel.com>
Fri, 10 Jan 2014 16:41:34 +0000 (11:41 -0500)
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 <mitko.haralanov@intel.com>
ofed_scripts/truescale.cmds

index 7eed316d53827ba554670211c5a77b97895d0b07..f719248b219d9eee6842fbc87c9b8c01232e8093 100644 (file)
@@ -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