Changeset 5502
- Timestamp:
- 12/02/08 21:56:45 (4 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
prog/detect/sensors-detect (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r5498 r5502 35 35 Move alias detection after all chip detections 36 36 Probe chip types from safest to more risky (#2322) 37 Add an option to skip ISA probes except IPMI 37 38 38 39 3.0.3 (2008-09-28) -
lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect
r5501 r5502 2778 2778 sub scan_isa_bus 2779 2779 { 2780 my $ipmi_only = shift; 2780 2781 my ($chip, $addr, $conf); 2781 2782 … … 2783 2784 foreach $chip (@chip_ids) { 2784 2785 next if not exists $chip->{isa_addrs} or not exists $chip->{isa_detect}; 2786 next if $ipmi_only && $chip->{name} !~ m/\bIPMI\b/; 2785 2787 foreach $addr (@{$chip->{isa_addrs}}) { 2786 2788 printf("\%-60s", sprintf("Probing for `\%s'\ at 0x\%x... ", … … 4868 4870 sub main 4869 4871 { 4872 my ($input); 4873 4870 4874 # We won't go very far if not root 4871 4875 unless ($> == 0) { … … 4923 4927 "We have to write to arbitrary I/O ports to probe them. This is usually\n". 4924 4928 "safe though. Yes, you do have ISA I/O ports even if you do not have any\n". 4925 "ISA slots! Do you want to scan the ISA I/O ports? (YES/no): "; 4926 unless (<STDIN> =~ /^\s*n/i) { 4929 "ISA slots! Do you want to scan the ISA I/O ports? (YES/no/ipmi only): "; 4930 $input = <STDIN>; 4931 unless ($input =~ /^\s*n/i) { 4927 4932 initialize_ioports(); 4928 scan_isa_bus( );4933 scan_isa_bus($input =~ /^\s*i/i); 4929 4934 close_ioports(); 4930 4935 }
