sensors-detect won't recognize 3.0 kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I filed this bug [1] in Launchpad for Ubuntu and attached the
following patch:


+--- lm-sensors-3-3.2.0.orig/prog/detect/sensors-detect
++++ lm-sensors-3-3.2.0/prog/detect/sensors-detect
+@@ -2258,7 +2258,8 @@ use vars qw(@kernel_version $kernel_arch
+
+ 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`);
+

Thanks,
Micah

[1] https://bugs.launchpad.net/bugs/797001
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk328b0ACgkQTniv4aqX/VnAnACfXxwI1xGCCprG6BLkcV1gEimL
ncEAnjSJ1pPDfE33tLwe9P4SI9ls9xin
=8AqL
-----END PGP SIGNATURE-----


_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux