2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Improve udev detection. Not all systems seem to have exactly the

same /dev/.udev* files or directories.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2849 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2005-01-15 11:05:40 +00:00
parent 543e373b07
commit 52f72ad67e

View File

@@ -1889,7 +1889,7 @@ sub initialize_conf
close INPUTFILE;
my $use_udev = 0;
if (-f '/dev/.udev.tdb') {
if (-f '/dev/.udev.tdb' || -f '/dev/.udev' || -d '/dev/.udevdb') {
$use_udev = 1;
$dev_i2c = '/dev/i2c-';
}