lm_sensors/lm_sensors-3.3.1-kernel-3.0.patch

14 lines
558 B
Diff
Raw Normal View History

diff -Nru lm_sensors-3.3.1.orig/prog/detect/sensors-detect lm_sensors-3.3.1/prog/detect/sensors-detect
--- lm_sensors-3.3.1.orig/prog/detect/sensors-detect 2011-07-10 21:22:53.000000000 +0200
+++ lm_sensors-3.3.1/prog/detect/sensors-detect 2012-01-06 16:41:53.139801191 +0100
@@ -2472,7 +2472,8 @@
sub initialize_kernel_version
{
- `uname -r` =~ /(\d+)\.(\d+)\.(\d+)(.*)/;
+ #Third decimal only for point releases starting with 3.0
+ `uname -r` =~ /(\d+)\.(\d+)(\.(\d+))?(.*)/;
@kernel_version = ($1, $2, $3, $4);
chomp($kernel_arch = `uname -m`);