2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 22:35:23 +00:00

Do not list the "not-a-sensor" and "use-isa-instead" fake drivers in

the summary. It's silly to ask the user to load these.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4149 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2006-09-06 15:43:14 +00:00
parent 70587e7751
commit 32b755dba7

View File

@@ -5150,11 +5150,11 @@ sub generate_modprobes
$modprobes .= "# Chip drivers\n";
foreach $chip (@chips_detected) {
next if not @{$chip->{detected}};
next if $chip->{driver} eq "not-a-sensor";
next if $chip->{driver} eq "use-isa-instead";
if ($chip->{driver} eq "to-be-written") {
$modprobes .= "# no driver for $chip->{detected}[0]{chipname} yet\n";
} elsif ($chip->{driver} eq "use-isa-instead") {
$modprobes .= "# no I2C driver for $chip->{detected}[0]{chipname} use ISA driver instead\n";
} elsif ($chip->{driver} ne "not-a-sensor") {
} else {
# need the * for 2.4 kernels, won't necessarily be an exact match
open(local *INPUTFILE, "modprobe -l $chip->{driver}\\* 2>/dev/null |");
local $_;
@@ -5373,6 +5373,8 @@ sub main
my ($chip,$data);
foreach $chip (@chips_detected) {
next if $chip->{driver} eq "not-a-sensor";
next if $chip->{driver} eq "use-isa-instead";
print "\nDriver `$chip->{driver}' ";
if (@{$chip->{detected}}) {
if (@{$chip->{misdetected}}) {