2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

Patch by Aurelien Jarno:

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.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2509 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2004-05-08 11:26:47 +00:00
parent adcd61f1c5
commit 5f48e8e6ad

View File

@@ -1734,7 +1734,7 @@ sub initialize_conf
my $use_devfs = 0;
open INPUTFILE, "/proc/mounts" or die "Can't access /proc/mounts!";
while (<INPUTFILE>) {
if (m@^none /dev devfs @) {
if (m@^\w+ /dev devfs @) {
$use_devfs = 1;
$dev_i2c = '/dev/i2c/';
last;