reliably detecting if running on an XO
holger at layer-acht.org
Mon Jun 30 09:17:18 EDT 2008
(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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/devel/attachments/20080630/d23fa5b7/attachment.pgp
More information about the Devel