fix munin 1
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / system-hw.rb
index aa50185..0b36e5f 100644 (file)
@@ -8,3 +8,14 @@ Facter.add("systemproductname") do
                end
        end
 end
+
+Facter.add("hw_can_temp_sensors") do
+       confine :kernel => :linux
+       setcode do
+               if FileTest.exist?("/sys/devices/virtual/thermal/thermal_zone0/temp")
+                       true
+               else
+                       ''
+               end
+       end
+end