All of lore.kernel.org
 help / color / mirror / Atom feed
From: Micah Gersten <micahg@ubuntu.com>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] sensors-detect won't recognize 3.0 kernel
Date: Tue, 14 Jun 2011 05:29:49 +0000	[thread overview]
Message-ID: <4DF6F1CD.9030001@ubuntu.com> (raw)


-----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
ŠqL
-----END PGP SIGNATURE-----


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

             reply	other threads:[~2011-06-14  5:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14  5:29 Micah Gersten [this message]
2011-06-17 15:07 ` [lm-sensors] sensors-detect won't recognize 3.0 kernel Jean Delvare
2011-06-17 17:04 ` Micah Gersten

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DF6F1CD.9030001@ubuntu.com \
    --to=micahg@ubuntu.com \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.