#/bin/bash
PWD=`cd $(dirname  $0);pwd`
BIOS_Ver=`dmidecode -t 0 |awk '/Version/{print $NF}' |sed 's/\s*//g'`
Pro_name=`ipmitool fru |awk -F":" '/Product Name/{print $NF}' |sed 's/^\s*//g'`
Pro_name_R=$(ipmitool fru list 0 | awk -F":" '/Product Name/{print $NF}' | xargs)

XI6150(){
if [[ "${BIOS_Ver}" = "1.27.11" ]];then
	./SCELNX_64 /i /d /s SUPERX_XI6150_20260225.cfg
	echo $?
fi
}

if [[ "${Pro_name_R}" == "XI6150" ]];then
        XI6150
fi

