mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-02 07:15:39 +00:00
add check for /dev/MAKEDEV
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4587 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -2174,10 +2174,13 @@ sub initialize_conf
|
|||||||
if (! -c '/dev/i2c-0' && -x '/sbin/MAKEDEV') {
|
if (! -c '/dev/i2c-0' && -x '/sbin/MAKEDEV') {
|
||||||
system("/sbin/MAKEDEV i2c");
|
system("/sbin/MAKEDEV i2c");
|
||||||
}
|
}
|
||||||
|
if (! -c '/dev/i2c-0' && -x '/dev/MAKEDEV') {
|
||||||
|
system("/dev/MAKEDEV i2c");
|
||||||
|
}
|
||||||
if (-c '/dev/i2c-0') {
|
if (-c '/dev/i2c-0') {
|
||||||
$dev_i2c = '/dev/i2c-';
|
$dev_i2c = '/dev/i2c-';
|
||||||
} else { # default
|
} else { # default
|
||||||
print "No i2c device files found. Use prog/mkdev/mkdev.sh to create them.\n";
|
print "No i2c device files found.\n";
|
||||||
exit -1;
|
exit -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user