reliably detecting if running on an XO

Holger Levsen holger at
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
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 

More information about the Devel mailing list