From: Jakub Bogusz Date: Mon, 21 Jan 2002 21:06:25 +0000 (+0000) Subject: - added sysconfig option to call `sensors -d' before running daemon X-Git-Tag: lm_sensors-2_6_2-6~9 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=09e9890db4ded51472c8eb0d3492af9b303c9415;p=packages%2Flm_sensors.git - added sysconfig option to call `sensors -d' before running daemon (some sensors are misconfigured after machine boot) - release 4 Changed files: lm_sensors.spec -> 1.35 sensors.init -> 1.3 sensors.sysconfig -> 1.2 --- diff --git a/lm_sensors.spec b/lm_sensors.spec index 3a9b0c2..7d89b54 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -11,7 +11,7 @@ Summary: Hardware health monitoring Summary(pl): Monitor stanu sprzêtu Name: lm_sensors Version: 2.6.2 -Release: 3 +Release: 4 License: GPL Group: Applications/System Group(de): Applikationen/System @@ -34,8 +34,8 @@ Tools for monitoring the hardware health of Linux systems containing hardware health monitoring hardware such as the LM78 and LM75. %description -l pl -Narzêdzie do monitorowania sprzêtu w systemach Linuxowych wyposa¿onych -w sprzêt monitoruj±cy, taki jak LM78 lub LM75. +Narzêdzie do monitorowania sprzêtu w systemach Linuksowych +wyposa¿onych w sprzêt monitoruj±cy, taki jak LM78 lub LM75. %package devel Summary: Header files for lm_sensors diff --git a/sensors.init b/sensors.init index 7b83591..34f3e7e 100644 --- a/sensors.init +++ b/sensors.init @@ -29,6 +29,10 @@ case "$1" in # insert modules _modprobe single die "i2c-$BUS" _modprobe single die "$CHIP" + + if [ "$SENSORS_SET" = "1" ]; then + sensors -s + fi msg_starting "sensors daemon" daemon sensord \ diff --git a/sensors.sysconfig b/sensors.sysconfig index 1cacff0..babf529 100644 --- a/sensors.sysconfig +++ b/sensors.sysconfig @@ -19,6 +19,9 @@ INTERVAL=1m # interval between logging LOG_INTERVAL=20m +# configure sensors (i.e. call `sensors -s') before starting daemon? +#SENSORS_SET=1 + # example for VIAKT* mainboards (bus is not (!) via) # BUS=isa # CHIP=via686a