Re: [gpm] how to do custom actions when my ups power is low ?



On Fri, 2008-06-20 at 10:42 -0400, dapiced videotron ca wrote:
> can i tell gnome-power-manager via GUI or CLI to execute a custom
> script "when it remains 5 minutes of ups power" or just before the
> shutdown action, i would like to execute a script.....

5 minutes before is tricky, but when the shutdown call is executed is
easy.

> does this is possible ?  if yes please describe command line...

Just edit /usr/lib/hal/scripts/hal-system-power-shutdown and add your
script there.

Richard.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]