lm_sensors/lm_sensors-3.3.5-kernel-detect-openmamba.patch
Silvan Calarco 90e2961817 sensors-detect: added patch to correctly detect kernel version
switch to systemd support [release 3.3.5-2mamba;Tue Jun 10 2014]
2024-01-06 06:27:01 +01:00

15 lines
607 B
Diff

diff -Nru lm_sensors-3.3.5.orig/prog/detect/sensors-detect lm_sensors-3.3.5/prog/detect/sensors-detect
--- lm_sensors-3.3.5.orig/prog/detect/sensors-detect 2014-01-14 22:51:58.615935000 +0100
+++ lm_sensors-3.3.5/prog/detect/sensors-detect 2014-06-10 14:29:27.202205868 +0200
@@ -2674,8 +2674,8 @@
sub initialize_kernel_version
{
chomp($kernel_version = `uname -r`);
- $kernel_version =~ /(\d+)\.(\d+)\.(\d+)(.*)/;
- @kernel_version = ($1, $2, $3, $4);
+ $kernel_version =~ /(\d+)\.(\d+)(.*)/;
+ @kernel_version = ($1, $2, $3);
chomp($kernel_arch = `uname -m`);
# We only support kernels >= 2.6.5