[munin] ACPI patch for BZ# 847132

fenris02 fenris02 at fedoraproject.org
Tue Aug 14 16:31:37 UTC 2012


commit 3890e0e24cea56247cb95056f94f48693b7999c8
Author: D. Johnson <fenris02 at fedoraproject.org>
Date:   Tue Aug 14 11:31:05 2012 -0500

    ACPI patch for BZ# 847132

 acpi-2.0.5.patch |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/acpi-2.0.5.patch b/acpi-2.0.5.patch
new file mode 100644
index 0000000..a33c4b6
--- /dev/null
+++ b/acpi-2.0.5.patch
@@ -0,0 +1,11 @@
+--- ./plugins/node.d.linux/acpi.in.orig	2012-08-14 10:19:40.000000000 -0500
++++ ./plugins/node.d.linux/acpi.in	2012-08-14 11:21:35.558280164 -0500
+@@ -47,7 +47,7 @@
+ =cut
+ 
+ 
+-ATZ="$(echo /proc/acpi/thermal_zone/*/temperature)"
++ATZ="[ -e /proc/acpi/thermal_zone/*/temperature ] && echo /proc/acpi/thermal_zone/*/temperature || echo /sys/class/thermal/thermal_zone*/trip*temp | cut -c1-2"
+ 
+ do_ () { # Fetch
+     echo "$ATZ" | tr ' ' '\n' | awk -F'[ /\t]*' '{


More information about the scm-commits mailing list