On Mon, Mar 27, 2006 at 03:32:42AM -0700, Holger Macht wrote:
> Author: hmacht
> Date: 2006-03-27 03:32:39 -0700 (Mon, 27 Mar 2006)
> New Revision: 2114
>
> Added:
> trunk/powersave/scripts/hotkey_handler
> Modified:
> trunk/powersave/scripts/Makefile.am
> trunk/powersave/scripts/thinkpad_acpi_events
> Log:
> - install generic hotkey_handler
> - adjust thinkpad_acpi_events to be called from the hotkey_handler
NACK. Thinkpad_acpi_events can no longer be used without hotkey_handler then.
Why not just pass all the parameters down to thinkpad_acpi_events?
> +###########################################################################
> +
> +# first get helper functions (e.g. DEBUG, load_scheme, ...)
> +. "${0%/*}/helper_functions"
> +
> +RET=0
> +
> +if [ -d /proc/acpi/ibm ]; then
> + if [ -x $PUB_SCRIPT_DIR/thinkpad_acpi_events ]; then
> + DEBUG "executing thinkpad_acpi_events" DEBUG
> + # pass over the acpi event line from $3
> + $PUB_SCRIPT_DIR/thinkpad_acpi_events "$3"
exec ........../thinkpad_acpi_events $@
--
Stefan Seyfried \ "I didn't want to write for pay. I
QA / R&D Team Mobile Devices \ wanted to be paid for what I write."
SUSE LINUX Products GmbH, Nürnberg \ -- Leonard Cohen
_______________________________________________
powersave-devel mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/powersave-devel