Changeset 723

Show
Ignore:
Timestamp:
02/02/00 21:57:46 (9 years ago)
Author:
frodo
Message:

Fixed two slight errors regarding the new bus handling code for
sensors-detect.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/prog/detect/sensors-detect

    r720 r723  
    18231823      # still all added. So we number them in the correct order 
    18241824      if (exists $detection->{i2c_driver} and 
    1825           not exists $adapters[$detection->{i2c_devnr}]->{nr} and  
     1825          not exists $adapters[$detection->{i2c_devnr}]->{nr_later} and  
    18261826          not (exists $detection->{isa_addr} and $prefer_isa)) { 
    18271827         foreach $adap (@adapters) { 
     
    18381838  for ($i = 0; $i < $nr; $i++) { 
    18391839    foreach $adap (@adapters) { 
    1840       $modprobes .= "modprobe $adap->{driver}\n" if (defined($adap->{nr_later}) and $adap->{nr_later} == $i)
     1840      $modprobes .= "modprobe $adap->{driver}\n" if (defined($adap->{nr_later}) and $adap->{nr_later} == $i) and not $modprobes =~ /modprobe $adap->{driver}\n/
    18411841    } 
    18421842  }