2008-10-23 12:29:59 +02:00
|
|
|
Now that the kernel package is split into 3 parts, it is possible
|
|
|
|
that not all required hwmon drivers are installed on the system when
|
|
|
|
sensors-detect is being run. Point the user to the kernel-*-extra
|
|
|
|
package if drivers are found to be missing.
|
|
|
|
---
|
2014-01-22 10:14:43 +01:00
|
|
|
prog/detect/sensors-detect | 7 ++++++-
|
|
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
2008-10-23 12:29:59 +02:00
|
|
|
|
2015-06-30 13:41:18 +02:00
|
|
|
--- a/prog/detect/sensors-detect
|
|
|
|
+++ b/prog/detect/sensors-detect
|
|
|
|
@@ -2796,13 +2796,16 @@ sub initialize_conf
|
2008-10-23 12:29:59 +02:00
|
|
|
# [2] -> SUBLEVEL
|
|
|
|
# [3] -> EXTRAVERSION
|
|
|
|
#
|
2014-01-22 10:14:43 +01:00
|
|
|
-use vars qw($kernel_version @kernel_version $kernel_arch);
|
|
|
|
+use vars qw($kernel_version @kernel_version $kernel_flavor $kernel_arch);
|
2008-10-23 12:29:59 +02:00
|
|
|
|
|
|
|
sub initialize_kernel_version
|
|
|
|
{
|
2014-01-22 10:14:43 +01:00
|
|
|
chomp($kernel_version = `uname -r`);
|
|
|
|
$kernel_version =~ /(\d+)\.(\d+)\.(\d+)(.*)/;
|
2009-07-30 17:01:03 +02:00
|
|
|
@kernel_version = ($1, $2, $3, $4);
|
|
|
|
+ if ($kernel_version[3] =~ /-([a-z]+)$/) {
|
|
|
|
+ chomp($kernel_flavor = $1);
|
|
|
|
+ }
|
|
|
|
chomp($kernel_arch = `uname -m`);
|
2008-10-23 12:29:59 +02:00
|
|
|
|
2009-07-30 17:01:03 +02:00
|
|
|
# We only support kernels >= 2.6.5
|
2015-06-30 13:41:18 +02:00
|
|
|
@@ -7022,6 +7025,8 @@ sub generate_modprobes
|
2009-07-30 17:01:03 +02:00
|
|
|
print "Warning: the required module $driver is not currently installed\n".
|
2014-01-22 10:14:43 +01:00
|
|
|
"on your system. Check http://www.lm-sensors.org/wiki/Devices for\n".
|
2009-07-30 17:01:03 +02:00
|
|
|
"driver availability.\n\n";
|
2014-01-22 10:14:43 +01:00
|
|
|
+ print "You may need to install package kernel-$kernel_flavor-extra for\n".
|
|
|
|
+ "lm-sensors to work properly.\n\n" if $kernel_flavor;
|
2009-07-30 17:01:03 +02:00
|
|
|
} else {
|
2014-01-22 10:14:43 +01:00
|
|
|
$hwmon_modules{$driver}++
|
|
|
|
unless hwmon_is_autoloaded($driver);
|