#!/bin/bash

Model=$(dmidecode -t 1 |grep "Product Name" |cut -d ":" -f 2|sed 's/^[ \t]*//g')

if [[ $Model = "R272-P30-UL" ]];then
	./SceLnxArm /i /s R272-P30-UL_20220218.cfg
elif [[ $Model = "G242-P31-UL" ]];then
	./SceLnxArm /i /s G242-P31-UL_20220218.cfg
elif [[ $Model = "R282-Z90-UL" ]];then
	./SCELNX_64_5.05.01.0002_2021 /i /s R282-Z90-UL_20220218.cfg
elif [[ $Model = "R282-Z90-UL-M" ]];then
	./SCELNX_64_5.05.01.0002_2021 /i /s R282-Z90-UL-M_20220218.cfg
elif [[ $Model = "R162-ZA0-ES-Ucloud-001" ]];then
	./SCELNX_64_5.05.01.0002_2021 /i /s R162-ZA0_20220218.cfg
fi
