- One (last) minor cosmetical fix to the initscript
This commit is contained in:
parent
4bd3dbf08e
commit
a3cedd6b7e
@ -52,7 +52,7 @@
|
|||||||
+ # Don't bother if /proc/sensors still doesn't exist, kernel doesn't have
|
+ # Don't bother if /proc/sensors still doesn't exist, kernel doesn't have
|
||||||
+ # support for sensors.
|
+ # support for sensors.
|
||||||
+ if ! [ -e /proc/sys/dev/sensors ]; then
|
+ 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_failure
|
||||||
+ echo
|
+ echo
|
||||||
+ exit 5
|
+ exit 5
|
||||||
@ -64,7 +64,7 @@
|
|||||||
+
|
+
|
||||||
+ CONFIG=/etc/sysconfig/lm_sensors
|
+ CONFIG=/etc/sysconfig/lm_sensors
|
||||||
+ if ! [ -r "$CONFIG" ] || ! grep '^MODULE_' $CONFIG >/dev/null 2>&1; then
|
+ 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_warning
|
||||||
+ echo
|
+ echo
|
||||||
+ exit 6
|
+ exit 6
|
||||||
@ -75,7 +75,7 @@
|
|||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
start() {
|
start() {
|
||||||
+ check_sensors
|
+ check_sensors "Starting"
|
||||||
+
|
+
|
||||||
echo -n "Starting $prog: loading module "
|
echo -n "Starting $prog: loading module "
|
||||||
|
|
||||||
@ -84,7 +84,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
+ check_sensors
|
+ check_sensors "Stopping"
|
||||||
+
|
+
|
||||||
echo -n "Stopping $prog: "
|
echo -n "Stopping $prog: "
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: lm_sensors
|
Name: lm_sensors
|
||||||
Version: 3.0.1
|
Version: 3.0.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
URL: http://www.lm-sensors.org/
|
URL: http://www.lm-sensors.org/
|
||||||
Source: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2
|
Source: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2
|
||||||
Source1: lm_sensors.sysconfig
|
Source1: lm_sensors.sysconfig
|
||||||
@ -167,6 +167,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Some improvements to the lsb-retcodes and service-default-off patches
|
||||||
from a review by upstream
|
from a review by upstream
|
||||||
|
Loading…
Reference in New Issue
Block a user