projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arcadelt: drop, decomissioned time ago
[mirror/dsa-puppet.git]
/
modules
/
debian-org
/
lib
/
facter
/
system-hw.rb
diff --git
a/modules/debian-org/lib/facter/system-hw.rb
b/modules/debian-org/lib/facter/system-hw.rb
index
aa50185
..
0b36e5f
100644
(file)
--- 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