Changeset 5622
- Timestamp:
- 01/26/09 16:19:28 (4 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
prog/init/lm_sensors.init (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r5621 r5622 8 8 Detect excessive recursion depth during expression eval (#2365) 9 9 lm_sensors.init: Support new format of /etc/sysconfig/lm_sensors (#2246) 10 Drop support for kernels 2.4 and earlier 10 11 lm_sensors.init.suse: Delete (actual SuSE script is much different) 11 12 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 45 45 # sensors are configured, and loads the config file 46 46 check_sensors() { 47 if grep -q sysfs /proc/mounts; then48 WITHSYS=149 else50 WITHSYS=051 fi52 53 if [ $WITHSYS == "0" ]; then54 # 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>&156 57 # Don't bother if /proc/sensors still doesn't exist, kernel doesn't have58 # support for sensors.59 if ! [ -e /proc/sys/dev/sensors ]; then60 echo -n "$1 $prog: kernel does not have sensors support"61 echo_failure62 echo63 exit 564 fi65 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>&168 fi69 70 47 CONFIG=/etc/sysconfig/lm_sensors 71 48 if ! [ -r "$CONFIG" ] || ! grep '^HWMON_MODULES' $CONFIG >/dev/null 2>&1; then … … 109 86 /sbin/modprobe -r $module >/dev/null 2>&1 110 87 done 111 112 if [ $WITHSYS == "0" ]; then113 /sbin/modprobe -r i2c-proc >/dev/null 2>&1114 fi115 88 116 89 RETVAL=$?
