#!/bin/bash

if [ $1 == "7.9" ]
then
	mlnx="MLNX_OFED_LINUX-4.9-2.2.4.0-rhel7.9-x86_64.iso"
elif [ $1 == "8.6" ]
then
	mlnx="MLNX_OFED_LINUX-5.8-1.1.2.1-rhel8.6-x86_64.iso"
elif [ $1 == "8.8" ]
then
	mlnx="MLNX_OFED_LINUX-23.04-1.1.3.0-rhel8.8-x86_64.iso"
elif [ $1 == "8.10" ]
then
	mlnx="MLNX_OFED_LINUX-23.10-3.2.2.0-rhel8.10-x86_64.iso"
else 
	mlnx="other"
fi

test -f /opt/nec/sysmng-soft/mlnx/${mlnx}
if [ $? == 0 ]
then
	echo -n ${mlnx}
else
	echo -n "none"
fi
