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

Support udev. Patch by Aurelien Jarno.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2664 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2004-08-18 19:55:33 +00:00
parent 89deecca35
commit 0d969d7486

View File

@@ -1803,6 +1803,12 @@ sub initialize_conf
}
close INPUTFILE;
my $use_udev = 0;
if (-f '/dev/.udev.tdb') {
$use_udev = 1;
$dev_i2c = '/dev/i2c-';
}
if (-f '/etc/modules.conf') {
$modules_conf = '/etc/modules.conf';
} elsif (-f '/etc/conf.modules') {
@@ -1811,7 +1817,7 @@ sub initialize_conf
$modules_conf = '/etc/modules.conf';
}
if (!$use_devfs) {
if (!($use_devfs || $use_udev)) {
if (-c '/dev/i2c-0') {
$dev_i2c = '/dev/i2c-';
} else { # default