Changeset 5435
- Timestamp:
- 11/26/08 18:17:29 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect
r5434 r5435 2295 2295 sub initialize_modules_list 2296 2296 { 2297 open(local *INPUTFILE, "/proc/modules") or return; 2298 local $_; 2299 while (<INPUTFILE>) { 2300 tr/-/_/; # Probably not needed 2301 $modules_list{$1} = 1 if m/^(\S*)/; 2302 } 2297 local $_; 2298 2299 open(local *INPUTFILE, "/proc/modules") or return; 2300 while (<INPUTFILE>) { 2301 tr/-/_/; # Probably not needed 2302 $modules_list{$1} = 1 if m/^(\S*)/; 2303 } 2303 2304 } 2304 2305 … … 2333 2334 sub initialize_modules_supported 2334 2335 { 2335 foreach my $chip (@chip_ids) {2336 $modules_supported{$chip->{driver}}++;2337 }2336 foreach my $chip (@chip_ids) { 2337 $modules_supported{$chip->{driver}}++; 2338 } 2338 2339 } 2339 2340
