diff --git a/contrib/netbsd-tests/fs/h_funcs.subr b/contrib/netbsd-tests/fs/h_funcs.subr index dc4403f4aa18..8da43cc95160 100644 --- a/contrib/netbsd-tests/fs/h_funcs.subr +++ b/contrib/netbsd-tests/fs/h_funcs.subr @@ -45,7 +45,7 @@ require_fs() { # Begin FreeBSD if true; then - if kldload -n ${name}; then + if kldstat -qm ${name} || kldload -n ${name}; then found=yes else found=no