Re: Use of sensors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Di, den 19.07.2005 schrieb Mike McCarty um 23:34:

> >Don't you have an /etc/init.d/lm_sensors init script which reads in
> >/etc/sysconfig/lm_sensors? Which modules to be loaded should be defined
> >in there.

> # ls -l /etc/init.d/lm_sensors
> ls: /etc/init.d/lm_sensors: No such file or directory

Oh, running FC2 as you answered Igor.

/usr/share/doc/lm_sensors-2.8.6/lm_sensors.init.redhat

Some adjustments have to be done:

$ diff -Naur /usr/share/doc/lm_sensors-2.8.6/lm_sensors.init.redhat
/etc/init.d/lm_sensors
--- /usr/share/doc/lm_sensors-2.8.6/lm_sensors.init.redhat     
2003-02-25 03:50:46.000000000 +0100
+++ /etc/init.d/lm_sensors      2004-07-19 19:36:44.000000000 +0200
@@ -29,17 +29,20 @@
 #    MODULE_1, MODULE_2, MODULE_3, etc.
  
 # If sensors isn't supported by the kernel, try loading the module...
-[ -e /proc/sys/dev/sensors ] || /sbin/modprobe i2c-proc &>/dev/null
+#[ -e /proc/sys/dev/sensors ] || /sbin/modprobe i2c-proc &>/dev/null
+[ -e  /sys/bus/i2c/devices ] || /sbin/modprobe i2c-sensor &>/dev/null
  
 # Don't bother if /proc/sensors still doesn't exist, kernel doesn't
have
 # support for sensors.
-[ -e /proc/sys/dev/sensors ] || exit 0
+#[ -e /proc/sys/dev/sensors ] || exit 0
+[ -e /sys/bus/i2c/devices ] || 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/sensors ] || /sbin/modprobe -r i2c-proc
&>/dev/null
+[ -e  /sys/bus/i2c/devices ] || /sbin/modprobe -r i2c-sensor
&>/dev/null
  
 CONFIG=/etc/sysconfig/lm_sensors
-PSENSORS=/usr/local/bin/sensors
+PSENSORS=/usr/bin/sensors
  
 # Source function library.
 . /etc/init.d/functions

> Mike

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp 
Serendipity 00:23:25 up 4 days, 4:55, load average: 0.40, 0.35, 0.28 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux