From 6fcf695cb201b1c9dcaebd3ff03f2eb72ef121a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Go=C5=82aszewski?= Date: Sun, 31 Aug 2003 23:22:32 +0000 Subject: [PATCH] - load button module (in 2.6 kernels), proper detection if module should be loaded (/proc/acpi/button directory - /proc/acpi/event is present anyway) Changed files: acpid.init -> 1.12 acpid.sysconfig -> 1.3 --- acpid.init | 5 +++-- acpid.sysconfig | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/acpid.init b/acpid.init index eefcad3..f8512d4 100644 --- a/acpid.init +++ b/acpid.init @@ -21,8 +21,9 @@ case "$1" in start) # Start daemons. if [ ! -f /var/lock/subsys/acpid ]; then - if [ ! -f /proc/acpi/event ]; then - _modprobe single ospm_button + if [ ! -d /proc/acpi/button ]; then + _modprobe ospm_button + _modprobe button fi if is_yes "$MODPROBE_OSPM_SYSTEM"; then _modprobe single ospm_system diff --git a/acpid.sysconfig b/acpid.sysconfig index aee646e..2b83bbd 100644 --- a/acpid.sysconfig +++ b/acpid.sysconfig @@ -6,5 +6,6 @@ SERVICE_RUN_NICE_LEVEL="+0" # Program arguments: PROGRAM_ARGS="" -# Run modprobe ospm_system on startup +# Run modprobe ospm_system (not present in 2.6 kernels) to allow +# smooth system shutdown MODPROBE_OSPM_SYSTEM="yes" -- 2.44.0