On Fri, Dec 17, 2010 at 07:16:56AM -0600, Matt Domsch wrote:
On Fri, Dec 17, 2010 at 04:57:35PM +0800, Simon Yan wrote:
> This is neat, thanks for the effort.
> Just tried it and works great.
>
> One suggestion, can you add the logic if the program is not executed
> by root it exits with a non-0 value and print out a warning message?
That's a good idea for now. Ideally we would expose all the necessary
bits in sysfs so it wouldn't need to be root (right now it reads
/dev/mem), but enough bits are missing from sysfs today that it isn't
feasible.
Patch is in upstream now, will be in the next release.
Thanks,
Matt
--
Matt Domsch
Technology Strategist
Dell | Office of the CTO