This should be handled via some sort of setup script, a metadata requires of some kind, etc (especially because this doesn't check the exit code of mqueuefs).

Also, it doesn't do kldstat -v so it wouldn't catch mqueuefs being compiled statically into the kernel..