hal-system-power-* scripts

Richard Hughes hughsient at gmail.com
Wed Sep 21 14:08:53 PDT 2005


On Tue, 2005-09-20 at 12:16 -0400, David Zeuthen wrote:
> On Tue, 2005-09-20 at 16:48 +0100, Richard Hughes wrote:
> > Surely distro A would only have the tool that works pre-installed?
> > 
> 
> But you just argued that a distro would have several tools installed and
> we would have to filter. 
> 
> Btw, my view is that a distro that allows the user to replace e.g. power
> management scripts and more serious stuff (like the user can replace the
> kernel with an elite custom compiled kernel) is more or less broken by
> design, but that is another discussion :-).
> 
> > Fedora isn't going to have PowerSave installed, just like SuSe isn't
> > going to have pmi installed.
> > 
> > > I don't see a problem that each distro filter on tools separately
> > > though.
> > 
> > Okay, what about a compromise.
> > 
> > Filter by distro (Redhat = pm-utils, SuSe = PowerSave) (like we have in
> > CVS) and then fallback to looking for the tools (like I proposed) for
> > the other Distros.
> 
> At best it would look like this (in pseudo-code) - note that Debian
> wants to try tool1 before tool2 (because tool1 is more likely to work
> with the default kernel) and Gentoo does the opposite (because tool2 is
> more likely to work with the default kernel).

Okay, What about the attached patch, that does exactly that..

Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tools-diff-2005-09-21-22-06-43.patch
Type: text/x-patch
Size: 9351 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050921/6034d5de/tools-diff-2005-09-21-22-06-43.bin


More information about the hal mailing list