#!/bin/bash
BIOS_Ver=$(dmidecode -t 0 |awk '/Version/{print $NF}' |sed 's/\s*//g')
platform=$(lscpu |grep -i "Model name:     "|awk '{print $5}'|cut -c 4)

if [[ $platform == '2' ]];then
	./AsusLinuxBiosUpdater -i KMPG-D32-R-ASUS-0501-PUS0010-24101501.CAP 
elif [[ $platform == '3' ]];then
	./AsusLinuxBiosUpdater -i KMPG-D32-ASUS-1103-PUS0010-24090501.CAP  
else
	exit 1
fi
