mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-19 19:40:49 +00:00
Fixed device file detection for devfs. Problem found and fix
tested by Lennard Klein. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2136 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
87738febe9
commit
4f819af753
1 file changed
+1
-1
@@ -1612,7 +1612,7 @@ sub initialize_conf
|
||||
|
||||
if (-c '/dev/i2c-0') {
|
||||
$dev_i2c = '/dev/i2c-';
|
||||
} elsif (-c '/dev/i2c/0') {
|
||||
} elsif (-d '/dev/i2c') { # devfs
|
||||
$dev_i2c = '/dev/i2c/';
|
||||
} elsif (-c '/dev/i2c0') {
|
||||
$dev_i2c = '/dev/i2c';
|
||||
|
||||
Reference in new issue
Block a user