Detect Intel System?
Detect Intel System?
- Subject: Detect Intel System?
- From: Duane Murphy <email@hidden>
- Date: Thu, 05 Aug 2010 14:28:42 -0700
-----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,
...Duane
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 10.0.2 (Build 13)
Charset: us-ascii
wsBVAwUBTFstFUrg9acQ4r2CAQjtrwf/eA3L8S3SIwbs1+W9sDAVSyX+y3rBD14m
GhW7cMoNczqy3gdDUpNmm29fQe1GE1CGe/URJrP0zT+xbB/2gCI/KN2SAPvIBkwJ
Sf/8+QWNlmu1YLeb/o8Hni9CAH94/QhyB16tqb2alcw9Zm5fPmwczZergDTBkeSZ
7wABtWwhpPUBlHD0VNf6no+NzgoPSqjpYAjGNPemXVtEKVLmSndqrCJ/E4i9pwoI
xhOoPY2Gs5FBuBaK6fFNEj+PKKvhtX9Q1KUN8MN/9JPZVyt3oLx2IMelOsIIyT+f
15vNhWcAZI1yJTXDjRLF2JmYU1TWtlzpVSsIZwImM5DNRvdw1ez2lQ==
=MhSE
-----END PGP SIGNATURE-----
_______________________________________________
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