#!/bin/bash
chmod 777 afulnx_64 afulnx_64_4.14
chmod 777 *.bin
Pro_name=`dmidecode -t1 |awk '/Product Name/{print $NF}'`
if [[ "$Pro_name" == "I420-G30" ]];then
	if [[ x"$(uname -r |awk -F"." '{print $2}')" == x"1" ]];then
		./afulnx_64 /MAKEDRV
		./afulnx_64 UJGS1035.bin /p /b /n /x /me
	elif [[ x"$(uname -r |awk -F"." '{print $2}')" == x"14" ]];then
		./afulnx_64_4.14 /MAKEDRV
		./afulnx_64_4.14 UJGS1035.bin /p /b /n /x /me
	fi
fi	
