diff options
Diffstat (limited to 'lib/facter')
-rw-r--r-- | lib/facter/ekeyd.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/facter/ekeyd.rb b/lib/facter/ekeyd.rb index 4c0a91b..f3abaeb 100644 --- a/lib/facter/ekeyd.rb +++ b/lib/facter/ekeyd.rb @@ -1,7 +1,7 @@ Facter.add('ekeyd_key_present') do setcode do - FileTest.exists?('/proc/bus/usb/devices') && \ - !(File.read('/proc/bus/usb/devices') =~ /Product=Entropy Key/).nil? + FileTest.exists?('/sys/kernel/debug/usb/devices') && \ + !(File.read('/sys/kernel/debug/usb/devices') =~ /Product=Entropy Key/).nil? end end Facter.add('ekeyd_key_present') do |