Drop support for kernels 2.4 and earlier.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5622 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2009-01-26 15:19:28 +00:00
1 parent f7a5feaaf4
commit 98b23f8627
2 files changed
+1 -27

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ SVN-HEAD
Fix error propagation during expression evaluation
Detect excessive recursion depth during expression eval (#2365)
lm_sensors.init: Support new format of /etc/sysconfig/lm_sensors (#2246)
Drop support for kernels 2.4 and earlier
lm_sensors.init.suse: Delete (actual SuSE script is much different)
Makefile: Install sensors.conf.default instead of sensors.conf.eg (#2333)
maxilife scripts: Delete (driver never ported to Linux 2.6)
-27
View File
@@ -44,29 +44,6 @@ prog="lm_sensors"
# This functions checks if sensor support is compiled into the kernel, if
# sensors are configured, and loads the config file
check_sensors() {
if grep -q sysfs /proc/mounts; then
WITHSYS=1
else
WITHSYS=0
fi
if [ $WITHSYS == "0" ]; then
# If sensors isn't supported by the kernel, try loading the module...
[ -e /proc/sys/dev/sensors ] || /sbin/modprobe i2c-proc >/dev/null 2>&1
# Don't bother if /proc/sensors still doesn't exist, kernel doesn't have
# support for sensors.
if ! [ -e /proc/sys/dev/sensors ]; then
echo -n "$1 $prog: kernel does not have sensors support"
echo_failure
echo
exit 5
fi
# If sensors was not already running, unload the module...
[ -e /var/lock/subsys/lm_sensors ] || /sbin/modprobe -r i2c-proc >/dev/null 2>&1
fi
CONFIG=/etc/sysconfig/lm_sensors
if ! [ -r "$CONFIG" ] || ! grep '^HWMON_MODULES' $CONFIG >/dev/null 2>&1; then
echo -n "$1 $prog: not configured, run sensors-detect"
@@ -109,10 +86,6 @@ stop() {
/sbin/modprobe -r $module >/dev/null 2>&1
done
if [ $WITHSYS == "0" ]; then
/sbin/modprobe -r i2c-proc >/dev/null 2>&1
fi
RETVAL=$?
if [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/lm_sensors ; then
echo_success