1 Facter.add("systemproductname") do
2 confine :kernel => :linux
4 if FileTest.exist?("/usr/sbin/dmidecode")
5 %x{/usr/sbin/dmidecode -s system-product-name}.chomp.strip
12 Facter.add("hw_can_temp_sensors") do
13 confine :kernel => :linux
15 if FileTest.exist?("/sys/devices/virtual/thermal/thermal_zone0/temp")