mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
try to run MAKEDEV if i2c-dev device files are missing before aborting (adapted fedora patch)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4572 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -2175,6 +2175,9 @@ sub initialize_conf
|
||||
}
|
||||
|
||||
if (!($use_devfs || $use_udev)) {
|
||||
if (! -c '/dev/i2c-0' && -x '/sbin/MAKEDEV') {
|
||||
system("/sbin/MAKEDEV i2c");
|
||||
}
|
||||
if (-c '/dev/i2c-0') {
|
||||
$dev_i2c = '/dev/i2c-';
|
||||
} else { # default
|
||||
|
Reference in New Issue
Block a user