Re: Detect Intel System?
Re: Detect Intel System?
- Subject: Re: Detect Intel System?
- From: Shantonu Sen <email@hidden>
- Date: Fri, 6 Aug 2010 05:40:19 -0700
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 <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
_______________________________________________
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