From 0d095be64f189def9324a1b323f0943d90224eb1 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 9 Mar 2012 13:07:26 -0800 Subject: OSX package: Check for 64-bit Intel CPU before installing. --- osx-resources/InstallationCheck | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 osx-resources/InstallationCheck (limited to 'osx-resources/InstallationCheck') diff --git a/osx-resources/InstallationCheck b/osx-resources/InstallationCheck new file mode 100755 index 000000000..4149b4c31 --- /dev/null +++ b/osx-resources/InstallationCheck @@ -0,0 +1,14 @@ +#!/bin/sh +cputype=`sysctl -n hw.cputype` +sixtyfourbit=`sysctl -n hw.cpu64bit_capable` + +if [ "x$cputype" != "x7" ] # x86 +then + exit 112 +fi + +if [ "x$sixtyfourbit" != "x1" ] # 64 bit +then + exit 113 +fi + -- cgit v1.2.3