#!/bin/bash
CPWD=`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'`

PHI2204AGP(){
if [[ "${BIOS_Ver}" = "4201" ]];then
	./SCELNX_64_5.05.01.0002_2021 /i /s PHI_2204A_GP_20241209_BIOS.cfg 
else
	exit 1
fi
}

if [[ "${Pro_name}" == "PHI2204AGP" ]];then
	PHI2204AGP
fi

if [[ "${Pro_name}" == "ESC8000A-E11" ]] && [[ "${BIOS_Ver}" == "2002" ]];then

	./SCELNX_64_5.05.01.0002_2021 /i /s SUPERPHI_ESC8000A-E11_EFI.cfg

fi
