Re: Detect Intel System?
Re: Detect Intel System?
- Subject: Re: Detect Intel System?
- From: Stephane Sudre <email@hidden>
- Date: Fri, 6 Aug 2010 12:15:09 +0200
A suggested solution:
sysctl hw.cpusubtype
On Thu, Aug 5, 2010 at 11:28 PM, Duane Murphy <email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden