]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- load ospm_system only if kernel is older than 2.6
authorleafnode <leafnode@pld-linux.org>
Tue, 18 May 2004 21:04:19 +0000 (21:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    acpid.init -> 1.18

acpid.init

index 4f2033ed6adf8a6490e24617774e24c67610068d..9d150f626e126ac0869eacbf74412e28ba958ebe 100644 (file)
@@ -20,7 +20,6 @@ TOSHIBA_LAPTOP=""
 # Configuration file.
 . /etc/sysconfig/acpid
 
-
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -31,7 +30,7 @@ case "$1" in
                        _modprobe ospm_button
                        _modprobe button
                fi
-               if is_yes "$MODPROBE_OSPM_SYSTEM"; then
+               if [ "$(kernelverser)" -lt "002006" ] && is_yes "$MODPROBE_OSPM_SYSTEM"; then
                        _modprobe single ospm_system
                fi
                # Load additional modules:
This page took 0.036065 seconds and 4 git commands to generate.