#user custom

source "$1"

PID=`ps -axc|grep "Mac_SwapperDemo"|awk '{print $1}'`
echo "will kill process Mac_SwapperDemo, PID $PID"
kill  $PID
#######################################################################
#
### 
### delete driver
#
#########################################################################
Uninstall_File="/Applications/USBDriverUninstall.app"
if [ -e "$Uninstall_File/Contents/Resources/UninstallHSDriver" ];then
	source "$Uninstall_File/Contents/Resources/UninstallHSDriver"
fi

echo "######################### delete uninstall file ################################"
uninstall="/Applications/USBDriverUninstall.app"
if [ "x$uninstall" != "x" ]; then
	rm -Rf "$uninstall"
fi

echo "################## Uninstall finished successfully! ###############"


