#!/bin/bash

# Check this is an Intel Mac
if [ ! -n "`system_profiler SPHardwareDataType | grep Intel`" ]; then
	
	if [ ! -n "`system_profiler SPHardwareDataType | grep VMware `" ]; then
		#echo "Cannot detect Intel or VMware Mac:Fail"
		exit 112;
	fi

fi

# Check if the application is currently running
if [ "`ps -ax | grep -i Inspire.app | grep -vi grep`" ]; then
	echo "Inspire is running on this computer:Fail"
	exit 113
fi	
