checkmk
checkmk copied to clipboard
Avoid one call of grep
General information
On FreeBSD, when called with parameter "-m", kldstat indicates via its exit code whether that symbol has been loaded into the kernel. In addition, "-q" suppresses any output.
Proposed changes
Use the exit code of kldstat to check whether geom_multipath.ko has been loaded, thus saving a call of grep.