#!/bin/bash
CPWD=`cd $(dirname  $0);pwd`
os_version=`uname -r |awk -F"el" '{print $2}' |awk -F"." '{print $1}'`
BIOS_Ver=`dmidecode -t 0 |awk '/Version/{print $NF}' |sed 's/\s*//g'`
Pro_name=`ipmitool fru print 0 |awk -F":" '/Product Name/{print $NF}' |sed 's/^\s*//g'`

cd $CPWD
S5GA(){
if [[ "${os_version}" = "7" ]] && [[ "${BIOS_Ver}" =~ ^3A10\.GA[0-9]+$ ]];then
    ./SCELNX_64 /i /s S5GA_20230901.cfg
fi
}

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