ce8a57b385
* library: The arbitrary limit on per-type sensor count is gone. Support for temperature min and critical min hysteresis. * sensors: Support for temperature min and critical min hysteresis. * fancontrol: Deal with moving hwmon attributes. Reduce memory consumption. * sensors-detect: Detection of new devices. * lm_sensors-r6216-fancontrol-moving-hwmon-attributes.patch, lm_sensors-r6237-default-config-NCT6779-NCT6791.patch, lm_sensors-r6254-detect-print-kernel-cpu.patch, lm_sensors-r6255-fix-shell-error-FCFANS.patch, lm_sensors-r6282-detect-graphics-card-in-all-cases.patch, lm_sensors-r6283-skip-addresses-0x37-0x4f-on-DDC.patch: Removed, upstream now. * lm_sensors-3.0.0-sensord-separate.patch, lm_sensors-3.0.0-sysconfig_metadata.patch, lm_sensors-3.0.3-hint-at-kernel-extra-package.patch: Refreshed. OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=85
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
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.
|
|
---
|
|
prog/detect/sensors-detect | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
--- a/prog/detect/sensors-detect
|
|
+++ b/prog/detect/sensors-detect
|
|
@@ -2796,13 +2796,16 @@ sub initialize_conf
|
|
# [2] -> SUBLEVEL
|
|
# [3] -> EXTRAVERSION
|
|
#
|
|
-use vars qw($kernel_version @kernel_version $kernel_arch);
|
|
+use vars qw($kernel_version @kernel_version $kernel_flavor $kernel_arch);
|
|
|
|
sub initialize_kernel_version
|
|
{
|
|
chomp($kernel_version = `uname -r`);
|
|
$kernel_version =~ /(\d+)\.(\d+)\.(\d+)(.*)/;
|
|
@kernel_version = ($1, $2, $3, $4);
|
|
+ if ($kernel_version[3] =~ /-([a-z]+)$/) {
|
|
+ chomp($kernel_flavor = $1);
|
|
+ }
|
|
chomp($kernel_arch = `uname -m`);
|
|
|
|
# We only support kernels >= 2.6.5
|
|
@@ -7022,6 +7025,8 @@ sub generate_modprobes
|
|
print "Warning: the required module $driver is not currently installed\n".
|
|
"on your system. Check http://www.lm-sensors.org/wiki/Devices for\n".
|
|
"driver availability.\n\n";
|
|
+ print "You may need to install package kernel-$kernel_flavor-extra for\n".
|
|
+ "lm-sensors to work properly.\n\n" if $kernel_flavor;
|
|
} else {
|
|
$hwmon_modules{$driver}++
|
|
unless hwmon_is_autoloaded($driver);
|