Changeset 5763 for lm-sensors/branches
- Timestamp:
- 07/24/09 18:09:53 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-2.10/prog/detect/sensors-detect
r5762 r5763 5621 5621 sub generate_modprobes 5622 5622 { 5623 my ($chip, $detection, $nr, $i, @optionlist, @probelist,$driver, $isa, $adap);5623 my ($chip, $detection, $nr, $i, @optionlist, $driver, $isa, $adap); 5624 5624 my $ipmi = 0; 5625 5625 my $modprobes = ""; … … 5724 5724 } 5725 5725 5726 next if not (@probelist or @optionlist);5726 next if not @optionlist; 5727 5727 $configfile = "# hwmon module options\n" unless defined $configfile; 5728 5728 $configfile .= "options $chip->{driver}"; 5729 5729 $configfile .= sprintf " ignore=%d,0x%02x", shift @optionlist, 5730 shift @optionlist 5731 if @optionlist; 5730 shift @optionlist; 5732 5731 $configfile .= sprintf ",%d,0x%02x", shift @optionlist, shift @optionlist 5733 5732 while @optionlist; 5734 $configfile .= sprintf " probe=%d,0x%02x", shift @probelist,5735 shift @probelist5736 if @probelist;5737 $configfile .= sprintf ",%d,0x%02x", shift @probelist, shift @probelist5738 while @probelist;5739 5733 $configfile .= "\n"; 5740 5734 }
