reliably detecting if running on an XO
Holger Levsen
holger at layer-acht.org
Mon Jun 30 09:17:18 EDT 2008
Hi,
(answering to myself, for the benefit of the archive.)
On Tuesday 24 June 2008 15:46, Holger Levsen wrote:
> can I reliably detect if my code is running on XO hardware?
> Is checking if /sys/power/olpc-pm exists enough? Is there a better way?
That's enough. /sys/power/olpc-pm is only created by the kernel, if such
hardware is detected.
regards,
Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20080630/d23fa5b7/attachment.sig>
More information about the Devel
mailing list