hal-system-power-* scripts

David Zeuthen david at fubar.dk
Mon Sep 26 07:34:09 PDT 2005


On Wed, 2005-09-21 at 22:08 +0100, Richard Hughes wrote:
> Okay, What about the attached patch, that does exactly that..

I think you need to enclose the "#Other distros just need to have *any*
tools installed" in it's own elif / fi block, right?

So it will look like this

if [ -f "/etc/altlinux-release" ] || [ -f "/etc/SuSE-release" ] ; then
  ...
elif [ -f "/etc/redhat-release" ] || [ -f "/etc/fedora-release" ] ; then
  ...
elif
  #Other distros just need to have *any* tools installed
  if [ -x "/usr/bin/powersave" ] ; then
  ...
fi

Cheers,
David


> 
> Richard.
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal



More information about the hal mailing list