almost every thing is ready
[debian6500.git] / master / root / bin / extract_thermal_info
diff --git a/master/root/bin/extract_thermal_info b/master/root/bin/extract_thermal_info
new file mode 100755 (executable)
index 0000000..3d49ce4
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/awk -f
+
+/sensord/ && /Phy/ {
+       printf "%s %s;%s;%s;%d;%g\n", $1, $2, $3, $4, $8, $9
+       if (max < $9) {
+               max=$9
+               host=$4
+               }
+}
+
+END {
+               printf "%s: %g\n", host, max
+}