#!/bin/bash
chmod +x afulnx_64
chmod +x *.bin
kernel_pre_version=`uname -r |awk -F"." '{print $1}'`
kernel_sub_version=`uname -r |awk -F"." '{print $2}'`
PN=`dmidecode -s system-product-name`
if [[ "$PN" =~ "MCCX D800" ]];then
	if [[ ${kernel_pre_version} == 4 ]];then
		./afulnx_64 /MAKEDRV
		./afulnx_64 T1DMG2000NM_20230327.bin /p /b /n /x /k /l /me
	elif [[ ${kernel_pre_version} == 5 ]];then
		if [[ ${kernel_sub_version} == 10 ]];then
                	./afulnx_64 T1DMG2000NM_20230327.bin /p /b /n /x /k /l /me
        	fi
	fi
fi
