Invoke script by power button

Matthias Schmidt schmidtm at mathematik.uni-marburg.de
Fri Jan 20 08:35:05 PST 2006


Moin,

* Hendrik Koch wrote:
> Hi,
> 
> i am looking for a way to invoke a shell script when i press the
> power-button.
> The script should do some custom tasks and then "shutdown -p now".

Look into /etc/rc.shutdown.

	Matthias


More information about the freebsd-acpi mailing list