- One (last) minor cosmetical fix to the initscript

This commit is contained in:
Hans de Goede 2008-03-12 20:52:38 +00:00
parent 4bd3dbf08e
commit a3cedd6b7e
2 changed files with 8 additions and 5 deletions

View File

@ -52,7 +52,7 @@
+ # 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 "Starting $prog: kernel does not have sensors support"
+ echo -n "$1 $prog: kernel does not have sensors support"
+ echo_failure
+ echo
+ exit 5
@ -64,7 +64,7 @@
+
+ CONFIG=/etc/sysconfig/lm_sensors
+ if ! [ -r "$CONFIG" ] || ! grep '^MODULE_' $CONFIG >/dev/null 2>&1; then
+ echo -n "Starting $prog: not configured, run sensors-detect"
+ echo -n "$1 $prog: not configured, run sensors-detect"
+ echo_warning
+ echo
+ exit 6
@ -75,7 +75,7 @@
+}
+
start() {
+ check_sensors
+ check_sensors "Starting"
+
echo -n "Starting $prog: loading module "
@ -84,7 +84,7 @@
}
stop() {
+ check_sensors
+ check_sensors "Stopping"
+
echo -n "Stopping $prog: "

View File

@ -1,6 +1,6 @@
Name: lm_sensors
Version: 3.0.1
Release: 3%{?dist}
Release: 4%{?dist}
URL: http://www.lm-sensors.org/
Source: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2
Source1: lm_sensors.sysconfig
@ -167,6 +167,9 @@ fi
%changelog
* Wed Mar 12 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.1-4
- One (last) minor cosmetical fix to the initscript
* Tue Feb 26 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 3.0.1-3
- Some improvements to the lsb-retcodes and service-default-off patches
from a review by upstream