munin installation (+ test auf immer1-0)
[puppet_munin.git] / plugins / facter / acpi_available.rb
1 # return whether acpi is available -- used for deciding whether to install the munin plugin
2 Facter.add("acpi_available") do
3         setcode do
4                 if `acpi -t -B -A 2>/dev/null`.match(/\d/).nil? 
5                         "absent"
6                 else
7                         "present"
8                 end
9         end
10 end