site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com subtype? that's possible the worst option, because evaluating the subtype only makes sense in the context of the cputype. Shantonu On Aug 6, 2010, at 3:15 AM, Stephane Sudre wrote:
A suggested solution:
sysctl hw.cpusubtype
On Thu, Aug 5, 2010 at 11:28 PM, Duane Murphy <duanemurphy@mac.com> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
We have a script that needs to detect if the OS is running on Intel hardware.
What is the safe way of doing this?
Our previous solution was to use system_profiler cpu_type. Interestingly, we have discovered that some systems do not provide a cpu_type string.
I also looked at sysctl machdep.cpu. This entry is not even provided on PPC systems.
Now I am considering sysctl kern.version although parsing that is likely the same as parsing arch.
Is there a recommended solution?
Thanks,
Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/ssen%40apple.com
This email sent to ssen@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Shantonu Sen