2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-09-05 00:35:35 +00:00

add i2c-ipmi to modprobe list if bmcsensors is on the list

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2907 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker
2005-02-13 23:04:54 +00:00
parent 9cd1f3213e
commit 382b2c5b19

View File

@@ -4743,6 +4743,7 @@ sub generate_modprobes
my ($prefer_isa) = @_;
my ($chip,$detection,$nr,$i,@optionlist,@probelist,$driver,$isa,$adap);
my $bmcsensors = 0;
my @adapters;
my $modprobes = "";
my $configfile = "";
@@ -4784,6 +4785,9 @@ sub generate_modprobes
not (exists $detection->{i2c_driver} and not $prefer_isa)) {
$isa=1;
}
if ($chip->{driver} eq "bmcsensors") {
$bmcsensors=1;
}
}
}
@@ -4804,6 +4808,10 @@ sub generate_modprobes
}
}
$modprobes .= "modprobe i2c-isa\n" if ($isa);
if ($bmcsensors) {
$modprobes .= "# You must also install and load the IPMI modules\n";
$modprobes .= "modprobe i2c-ipmi\n";
}
# Now determine the chip probe lines
$modprobes .= "# I2C chip drivers\n";