X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Flib%2Ffacter%2Fsystem-hw.rb;fp=modules%2Fdebian-org%2Flib%2Ffacter%2Fsystem-hw.rb;h=0b36e5feb844f0bb3d3dcf83b53bd7f525971d4a;hb=6326fbc9ca5caff07ba662c331922205b3a77716;hp=aa50185ead7dcde98467651a585bcd99e8743f9a;hpb=3f8b6622ad97a0f9006b75306f364b4ba50f9b6f;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/lib/facter/system-hw.rb b/modules/debian-org/lib/facter/system-hw.rb index aa50185ea..0b36e5feb 100644 --- a/modules/debian-org/lib/facter/system-hw.rb +++ b/modules/debian-org/lib/facter/system-hw.rb @@ -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