Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2006 17:34:56 +0100
From:      Matthias Schmidt <schmidtm@mathematik.uni-marburg.de>
To:        "freebsd-acpi@freebsd.org" <freebsd-acpi@freebsd.org>
Subject:   Re: Invoke script by power button
Message-ID:  <20060120163456.GD18939@staatsfeind.org>
In-Reply-To: <43D0F78E.9030505@freenet.de>
References:  <43D0F78E.9030505@freenet.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060120163456.GD18939>