X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Flib%2Ffacter%2Fsystem-hw.rb;h=0b36e5feb844f0bb3d3dcf83b53bd7f525971d4a;hb=c2a282f3cca5df423cd773ff7bba5b409bdf763e;hp=aa50185ead7dcde98467651a585bcd99e8743f9a;hpb=0f364e0ba944a33544fa15aef37d584a49320df1;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