checkmk icon indicating copy to clipboard operation
checkmk copied to clipboard

Avoid one call of grep

Open felixjogris opened this issue 1 year ago • 0 comments

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.

felixjogris avatar Aug 08 '24 21:08 felixjogris