From 32b755dba7e25282aa5bfdb556a0ed2f5f533060 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 6 Sep 2006 15:43:14 +0000 Subject: [PATCH] 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 --- prog/detect/sensors-detect | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index dd94201b..e1195040 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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}}) {