make the module installed detection work for 2.4 kernels too

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2908 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2005-02-13 23:49:58 +00:00
1 parent 382b2c5b19
commit bf42775541
1 file changed
+2 -1
+2 -1
View File
@@ -4822,7 +4822,8 @@ sub generate_modprobes
} 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") {
open(local *INPUTFILE, "modprobe -l $chip->{driver} 2>/dev/null |");
# need the * for 2.4 kernels, won't necessarily be an exact match
open(local *INPUTFILE, "modprobe -l $chip->{driver}\\* 2>/dev/null |");
local $_;
my $modulefound = 0;
while (<INPUTFILE>) {