From ff8230310bdacf7cf98f7ec05260ff58b421014c Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 5 Sep 2007 16:45:19 +0000 Subject: [PATCH] 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 --- prog/detect/sensors-detect | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index c0c85963..5ad9eec7 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -5449,11 +5449,7 @@ sub generate_modprobes my ($chip,$detection,$nr,$i,@optionlist,@probelist,$driver,$isa,$adap); my $ipmi = 0; my $modprobes = ""; - my $configfile = ""; - - # These are always needed - $configfile .= "# I2C module options\n"; - $configfile .= "alias char-major-89 i2c-dev\n"; + my $configfile; # Collect all adapters used $nr = 0; @@ -5564,6 +5560,7 @@ sub generate_modprobes } next if not (@probelist or @optionlist); + $configfile = "# hwmon module options\n" unless defined $configfile; $configfile .= "options $chip->{driver}"; $configfile .= sprintf " ignore=%d,0x%02x",shift @optionlist, shift @optionlist @@ -5776,11 +5773,13 @@ sub main print "\n"; my ($modprobes, $configfile) = generate_modprobes 1; # 1 == prefer ISA - print "To make the sensors modules behave correctly, add these lines to\n". - "$modules_conf:\n\n"; - print "#----cut here----\n". - $configfile. - "#----cut here----\n\n"; + if (defined $configfile) { + print "To make the sensors modules behave correctly, add these lines to\n". + "$modules_conf:\n\n"; + print "#----cut here----\n". + $configfile. + "#----cut here----\n\n"; + } print "To load everything that is needed, add this to some /etc/rc* file:\n\n"; print "#----cut here----\n".