Changeset 5622

Show
Ignore:
Timestamp:
01/26/09 16:19:28 (4 years ago)
Author:
khali
Message:

Drop support for kernels 2.4 and earlier.

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r5621 r5622  
    88              Detect excessive recursion depth during expression eval (#2365) 
    99  lm_sensors.init: Support new format of /etc/sysconfig/lm_sensors (#2246) 
     10                   Drop support for kernels 2.4 and earlier 
    1011  lm_sensors.init.suse: Delete (actual SuSE script is much different) 
    1112  Makefile: Install sensors.conf.default instead of sensors.conf.eg (#2333) 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/init/lm_sensors.init

    r5620 r5622  
    4545# sensors are configured, and loads the config file 
    4646check_sensors() { 
    47         if grep -q sysfs /proc/mounts; then 
    48                 WITHSYS=1 
    49         else 
    50                 WITHSYS=0 
    51         fi 
    52  
    53         if [ $WITHSYS == "0" ]; then 
    54                 # If sensors isn't supported by the kernel, try loading the module... 
    55                 [ -e /proc/sys/dev/sensors ] || /sbin/modprobe i2c-proc >/dev/null 2>&1 
    56  
    57                 # Don't bother if /proc/sensors still doesn't exist, kernel doesn't have 
    58                 # support for sensors. 
    59                 if ! [ -e /proc/sys/dev/sensors ]; then 
    60                         echo -n "$1 $prog: kernel does not have sensors support" 
    61                         echo_failure 
    62                         echo 
    63                         exit 5 
    64                 fi 
    65  
    66                 # If sensors was not already running, unload the module... 
    67                 [ -e /var/lock/subsys/lm_sensors ] || /sbin/modprobe -r i2c-proc >/dev/null 2>&1 
    68         fi 
    69  
    7047        CONFIG=/etc/sysconfig/lm_sensors 
    7148        if ! [ -r "$CONFIG" ] || ! grep '^HWMON_MODULES' $CONFIG >/dev/null 2>&1; then 
     
    10986                /sbin/modprobe -r $module >/dev/null 2>&1 
    11087        done 
    111  
    112         if [ $WITHSYS == "0" ]; then 
    113                 /sbin/modprobe -r i2c-proc >/dev/null 2>&1 
    114         fi 
    11588 
    11689        RETVAL=$?