diff --git a/apmd.init b/apmd.init index 01a0c0f..bce8abc 100755 --- a/apmd.init +++ b/apmd.init @@ -8,7 +8,11 @@ # config: /etc/sysconfig/apmd # clock: /etc/sysconfig/clock -# Don't bother if /proc/apm doesn't exist, kernel doesn't have support for APM. +# If APM isn't supported by the kernel, try loading the module... +[ -e /proc/apm ] || /sbin/modprobe apm &>/dev/null + +# Don't bother if /proc/apm still doesn't exist, kernel doesn't have +# support for APM. [ -e /proc/apm ] || exit 0 CONFIG=/etc/sysconfig/apmd @@ -33,6 +37,7 @@ stop() { killproc apmd RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/apmd + /sbin/modprobe -r apm &>/dev/null echo } diff --git a/apmd.spec b/apmd.spec index bd7d665..5c0e8a2 100644 --- a/apmd.spec +++ b/apmd.spec @@ -2,7 +2,7 @@ Summary: Advanced Power Management (APM) BIOS utilities for laptops. Name: apmd Version: 3.0final -Release: 33 +Release: 34 Source: ftp://ftp.debian.org/debian/dists/unstable/main/source/admin/%{name}_%{version}-1.tar.gz Source1: apmd.init Source2: apmscript @@ -85,6 +85,9 @@ fi %config /etc/sysconfig/apm-scripts/* %changelog +* Tue Jul 24 2001 Bernhard Rosenkraenzer 3.0final-34 +- Add support for kernels with modular apm (RFE #49683) + * Tue Jun 26 2001 Bernhard Rosenkraenzer 3.0final-33 - Add pre-suspend and pre-resume hooks (#44603, #45706)