Invoke script by power button
Nate Lawson
nate at root.org
Fri Jan 20 11:44:18 PST 2006
Matthias Schmidt wrote:
> 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.
Yeah, that's a good place since the system won't actually shut down
until the script is done executing. You can get power button notifies
from devd (see devd.conf) but the system will continue processing the
shutdown without waiting.
--
Nate
More information about the freebsd-acpi
mailing list