site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=JQRRZ3LZ+ck8CpkZcgpvuE0adiRe//4OqaWsUj0uyr4=; b=OnILqvW08BAs5WbRaIPOWF2408FNs8cmxEX4lp+3SCTrNANWLBWgmpNY1VZMJ3jemG sOaUkwtwDKd1t2c+0H1ADQrkEgJf5echUaJZm6wpvD3GHKXMg/CVCrfDVpnTQespkbxw xxlcKMFze1BCE/Wpah+K9Oouz5/fljv1n+Bww= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=aoThfxejVQ/TxkvCfcbP+xzvWuXuVWOrZtPHpN/VHXY9FNG2c0sc7qk8E0ZpxP+AZ+ RLjV/FmqSSLtR7mJhjXVcWHxCB1BZiDEfgFlwgGF2dSFJtbwQHiGjP08ZYbDWotvg99W 0bBoV3ypuxn02vewwGcx8wk/rxzEUfldx2qaM= 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/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com