#!/bin/bash
###########################################################################
#                                                                         #
#                         Powersave Daemon                                #
#                                                                         #
#            Copyright (C) 2006 SUSE Linux Products GmbH                  #
#                                                                         #
# This program is free software; you can redistribute it and/or modify it #
# under the terms of the GNU General Public License as published by the   #
# Free Software Foundation; either version 2 of the License, or (at you   #
# option) any later version.                                              #
#                                                                         #
# This program is distributed in the hope that it will be useful, but     #
# WITHOUT ANY WARRANTY; without even the implied warranty of              #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       #
# General Public License for more details.                                #
#                                                                         #
# You should have received a copy of the GNU General Public License along #
# with this program; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA                  #
#                                                                         #
###########################################################################

# first get helper functions (e.g. DEBUG, load_scheme, ...)
. "${0%/*}/helper_functions"

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
	 	exec $PUB_SCRIPT_DIR/thinkpad_acpi_events "$@"
	fi
fi 	

exit 0
