mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user