]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- added modprobe acpi module
authorPaweł Gołaszewski <blues@pld-linux.org>
Sat, 14 Sep 2002 22:44:08 +0000 (22:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    acpid.init -> 1.4

acpid.init

index 273a780b38080f1966d69abf4ac3eaf0b204b0ac..d4465a6cacc3ca37ad4f979ab1e38bb3d184daff 100644 (file)
@@ -22,13 +22,16 @@ case "$1" in
        start)
        # Start daemons.
                if [ ! -f /var/lock/subsys/acpid ]; then
-                   msg_starting acpid $PROGRAM_ARGS
-                   daemon acpid
-                   RETVAL=$?
-                   [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
+                       if [ ! -f /proc/acpi/event ]; then
+                               modprobe ospm_system
+                       fi
+                       msg_starting acpid $PROGRAM_ARGS
+                       daemon acpid
+                       RETVAL=$?
+                       [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
                else
                        msg_already_running acpid
-               fi
+               fi
                ;;
        stop)
                # Stop daemons.
This page took 0.073798 seconds and 4 git commands to generate.