summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/facter/ekeyd.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/facter/ekeyd.rb b/lib/facter/ekeyd.rb
index a201e7f..7521948 100644
--- a/lib/facter/ekeyd.rb
+++ b/lib/facter/ekeyd.rb
@@ -1,7 +1,6 @@
Facter.add('ekeyd_key_present') do
confine :kernel => %w{Linux}
setcode do
- FileTest.exists?('/proc/bus/usb/devices') && \
- !(File.read('/proc/bus/usb/devices') =~ /Product=Entropy Key/).nil?
+ !Kernel.exec('lsusb | grep "Entropy Key"').empty?
end
end