From 382b2c5b1937e703a27972490358f87adce36e3e Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 13 Feb 2005 23:04:54 +0000 Subject: [PATCH] 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 --- prog/detect/sensors-detect | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 7b1a6e67..ea00b29d 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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";