[munin] Adding ACPI patch

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


commit f4fff2dae2480226b7fdfdf8417e781da437b571
Author: D. Johnson <fenris02 at fedoraproject.org>
Date:   Tue Aug 14 11:43:37 2012 -0500

    Adding ACPI patch

 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..40dda4c
--- /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"
+ 
+ do_ () { # Fetch
+     echo "$ATZ" | tr ' ' '\n' | awk -F'[ /\t]*' '{


More information about the scm-commits mailing list