diff options
Diffstat (limited to 'util/scripts/mac-binary/package/opensourceStuff/InstallationCheck')
-rwxr-xr-x | util/scripts/mac-binary/package/opensourceStuff/InstallationCheck | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/util/scripts/mac-binary/package/opensourceStuff/InstallationCheck b/util/scripts/mac-binary/package/opensourceStuff/InstallationCheck new file mode 100755 index 0000000..f1cd8ad --- /dev/null +++ b/util/scripts/mac-binary/package/opensourceStuff/InstallationCheck @@ -0,0 +1,15 @@ +#!/bin/sh + +# We need to do things differently on different platforms +# <10.3.9 Can't install +# =10.3.9 Can install, but must check license manually +# >=10.4 Just jump out + +os_version=`sysctl kern.osrelease | awk '{ print $3 }'` +os_major=`echo $os_version | cut -d . -f 1` +os_minor=`echo $os_version | cut -d . -f 2` + +if [ $os_major -lt 7 -o $os_major -eq 7 -a $os_minor -lt 9 ]; then + exit $((96+19)) +fi +exit 0 |