Sensors-detect fail to detect devfs (with patch)

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

 



Hi all,

When running sensors-detect on a system with devfs enabled, and the 
/proc/mounts report its device different from 'none' (for example devfsd
uses 'devfs' as device name), sensors-detect don't detect devfs and try
to use normal names for i2c devices.

The attached patch fixes that.

Bye,
Aurelien

-- 
  .''`.  Aurelien Jarno               GPG: 1024D/F1BCDB73
 : :' :  Debian GNU/Linux developer | Electrical Engineering Student 
 `. `'   aurel32 at debian.org         | aurelien at aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

-------------- next part --------------
--- lm_sensors2/prog/detect/sensors-detect	30 Apr 2004 16:56:41 -0000	1.315
+++ lm_sensors2/prog/detect/sensors-detect	7 May 2004 08:40:16 -0000
@@ -1736,3 +1736,3 @@ sub initialize_conf
   while (<INPUTFILE>) {
-    if (m@^none /dev devfs @) {
+    if (m@^\w+ /dev devfs @) {
       $use_devfs = 1;


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux