mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
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:
@@ -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>) {
|
||||
|
Reference in New Issue
Block a user