mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
rename lockfile from sensors to lm_sensors; ticket 1806
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2776 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
d83fd7e0a2
commit
af62c8384d
2 files changed
+7
-7
No files matched your search
@@ -43,7 +43,7 @@ if [ $WITHSYS == "0" ]; then
|
||||
[ -e /proc/sys/dev/sensors ] || exit 0
|
||||
|
||||
# If sensors was not already running, unload the module...
|
||||
[ -e /var/lock/subsys/sensors ] || /sbin/modprobe -r i2c-proc &>/dev/null
|
||||
[ -e /var/lock/subsys/lm_sensors ] || /sbin/modprobe -r i2c-proc &>/dev/null
|
||||
fi
|
||||
|
||||
CONFIG=/etc/sysconfig/lm_sensors
|
||||
@@ -73,7 +73,7 @@ start() {
|
||||
$PSENSORS -s
|
||||
|
||||
RETVAL=$?
|
||||
if [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sensors ; then
|
||||
if [ $RETVAL -eq 0 ] && touch /var/lock/subsys/lm_sensors ; then
|
||||
echo_success
|
||||
echo
|
||||
else
|
||||
@@ -99,7 +99,7 @@ stop() {
|
||||
fi
|
||||
|
||||
RETVAL=$?
|
||||
if [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sensors ; then
|
||||
if [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/lm_sensors ; then
|
||||
echo_success
|
||||
echo
|
||||
else
|
||||
@@ -120,7 +120,7 @@ restart() {
|
||||
}
|
||||
|
||||
condrestart() {
|
||||
[ -e /var/lock/subsys/sensors ] && restart || :
|
||||
[ -e /var/lock/subsys/lm_sensors ] && restart || :
|
||||
}
|
||||
|
||||
# See how we were called.
|
||||
|
||||
@@ -92,7 +92,7 @@ start()
|
||||
daemon sensord -i $interval -l $log_interval
|
||||
RETVAL=$?
|
||||
|
||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sensors
|
||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/lm_sensors
|
||||
|
||||
echo
|
||||
return $RETVAL
|
||||
@@ -114,7 +114,7 @@ stop()
|
||||
echo_status $?
|
||||
|
||||
echo
|
||||
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sensors
|
||||
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/lm_sensors
|
||||
|
||||
return $RETVAL
|
||||
}
|
||||
@@ -146,7 +146,7 @@ case "$1" in
|
||||
reload
|
||||
;;
|
||||
condrestart)
|
||||
[ -e /var/lock/subsys/sensors ] && restart || :
|
||||
[ -e /var/lock/subsys/lm_sensors ] && restart || :
|
||||
;;
|
||||
*)
|
||||
echo "Usage: sensors {start|stop|restart|reload|condrestart|status}"
|
||||
|
||||
Reference in new issue
Block a user