Skip to content

Commit

Permalink
The kernel plugin now sets the kernel/modules attribute on the :darwi…
Browse files Browse the repository at this point in the history
…n platform
  • Loading branch information
Claire McQuin committed Jan 2, 2014
1 parent ab6f04e commit c7c24d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ohai/plugins/kernel.rb
Expand Up @@ -86,7 +86,7 @@ def os_lookup(sys_type)
so = shell_out("kextstat -k -l")
so.stdout.lines do |line|
if line =~ /(\d+)\s+(\d+)\s+0x[0-9a-f]+\s+0x([0-9a-f]+)\s+0x[0-9a-f]+\s+([a-zA-Z0-9\.]+) \(([0-9\.]+)\)/
kext[$4] = { :version => $5, :size => $3.hex, :index => $1, :refcount => $2 }
modules[$4] = { :version => $5, :size => $3.hex, :index => $1, :refcount => $2 }
end
end

Expand Down

0 comments on commit c7c24d3

Please sign in to comment.