1 2 3 4 5 6
Facter.add('ekeyd_key_present') do confine :kernel => %w{Linux} setcode do !`lsusb | grep "Entropy Key"`.empty? end end