Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid one call of grep #744

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

felixjogris
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants