2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-01-08 09:22:33 +00:00

Remove trailing spaces in file xCAT/postscripts/check_mlnx_firmware

This commit is contained in:
GONG Jie
2017-12-31 23:59:59 +00:00
parent 81910bd07e
commit 506ad86a48

View File

@@ -5,19 +5,19 @@
#
#
BINARIES="ofed_info mst ibdev2netdev"
for PROG in ${BINARIES}; do
for PROG in ${BINARIES}; do
RC=`command -v ${PROG} >> /dev/nul 2>&1; echo $?`
if [[ ${RC} != 0 ]]; then
echo "${PROG} is not installed on this node, unable to check firmware levels."
exit 1
fi
fi
done
MELLANOX_SOFTWARE=`ofed_info -s | cut -d: -f1`
echo "Mellanox Software: $MELLANOX_SOFTWARE"
mst start >> /dev/null
mst start >> /dev/null
if [[ $? != 0 ]]; then
echo "Error: Could not start mst, cannot check adapter firmware level."
exit 1