2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

Stop mentioning the alias trick for i2c-dev, it no longer works and it

doesn't have anything to do with sensors anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4777 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2007-09-05 16:45:19 +00:00
parent 65b9d4dd92
commit ff8230310b

View File

@@ -5449,11 +5449,7 @@ sub generate_modprobes
my ($chip,$detection,$nr,$i,@optionlist,@probelist,$driver,$isa,$adap); my ($chip,$detection,$nr,$i,@optionlist,@probelist,$driver,$isa,$adap);
my $ipmi = 0; my $ipmi = 0;
my $modprobes = ""; my $modprobes = "";
my $configfile = ""; my $configfile;
# These are always needed
$configfile .= "# I2C module options\n";
$configfile .= "alias char-major-89 i2c-dev\n";
# Collect all adapters used # Collect all adapters used
$nr = 0; $nr = 0;
@@ -5564,6 +5560,7 @@ sub generate_modprobes
} }
next if not (@probelist or @optionlist); next if not (@probelist or @optionlist);
$configfile = "# hwmon module options\n" unless defined $configfile;
$configfile .= "options $chip->{driver}"; $configfile .= "options $chip->{driver}";
$configfile .= sprintf " ignore=%d,0x%02x",shift @optionlist, $configfile .= sprintf " ignore=%d,0x%02x",shift @optionlist,
shift @optionlist shift @optionlist
@@ -5776,11 +5773,13 @@ sub main
print "\n"; print "\n";
my ($modprobes, $configfile) = generate_modprobes 1; # 1 == prefer ISA my ($modprobes, $configfile) = generate_modprobes 1; # 1 == prefer ISA
print "To make the sensors modules behave correctly, add these lines to\n". if (defined $configfile) {
"$modules_conf:\n\n"; print "To make the sensors modules behave correctly, add these lines to\n".
print "#----cut here----\n". "$modules_conf:\n\n";
$configfile. print "#----cut here----\n".
"#----cut here----\n\n"; $configfile.
"#----cut here----\n\n";
}
print "To load everything that is needed, add this to some /etc/rc* file:\n\n"; print "To load everything that is needed, add this to some /etc/rc* file:\n\n";
print "#----cut here----\n". print "#----cut here----\n".