Class: Specinfra::Command::Solaris::Base::KernelModule

Inherits:
Base::KernelModule show all
Defined in:
lib/specinfra/command/solaris/base/kernel_module.rb

Class Method Summary collapse

Methods inherited from Base

create, escape

Class Method Details

.check_is_loaded(name) ⇒ Object



3
4
5
# File 'lib/specinfra/command/solaris/base/kernel_module.rb', line 3

def check_is_loaded(name)
  "modinfo -c | awk '$3 == \"#{escape(name)}\" { print $4 }' | grep ^LOADED"
end