[Pm-utils] [PATCH 01/17] Our on_ac_power script never returns 255.

Victor Lowther victor.lowther at gmail.com
Fri Feb 15 07:46:54 PST 2008

On Fri, Feb 15, 2008 at 08:52:59AM +0100, Michael Biebl wrote:
> 2008/2/15, Victor Lowther <victor.lowther at gmail.com>:
> > This patch series is strictly for cleanups, mainly getting rid on unneeded
> >  calls to exit and return.
> >
> >  Our on_ac_power never returns 255, so don't bother mentioning it.
> I wouldn't remove the documentation
> Instead I'd return 255 in on_ac_power if hal-find-by-capability /
> hal-get-property are not available.

The script did that originally back at the dawn of time.  I believe the
255 return was removed because it caused more confusion than assuming
the system was on ac power if we cannot find out what power source it is
> Cheers,
> Michael
> -- 
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?

Victor Lowther
Ubuntu Certified Professional

More information about the Pm-utils mailing list