Changeset 4571

Show
Ignore:
Timestamp:
07/06/07 21:39:39 (7 years ago)
Author:
jwrdegoede
Message:

try to run MAKEDEV if i2c-dev device files are missing before aborting (adapted fedora patch)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r4568 r4571  
    21762176 
    21772177  if (!($use_devfs || $use_udev)) { 
     2178    if (! -c '/dev/i2c-0' && -x '/sbin/MAKEDEV') { 
     2179      system("/sbin/MAKEDEV i2c"); 
     2180    } 
    21782181    if (-c '/dev/i2c-0') { 
    21792182      $dev_i2c = '/dev/i2c-';