summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/mountcritremote
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/mountcritremote')
-rwxr-xr-xetc/rc.d/mountcritremote6
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/rc.d/mountcritremote b/etc/rc.d/mountcritremote
index 7800406..15ea27f 100755
--- a/etc/rc.d/mountcritremote
+++ b/etc/rc.d/mountcritremote
@@ -27,11 +27,7 @@ mountcritremote_precmd()
case "`mount -d -a -t nfs 2> /dev/null`" in
*mount_nfs*)
# Handle absent nfs client support
- if ! sysctl vfs.nfs >/dev/null 2>&1; then
- kldload nfsclient || { warn 'nfs mount ' \
- 'requested, but no nfs client in kernel'; \
- return 1; }
- fi
+ load_kld -m nfs nfsclient || return 1
;;
esac
return 0
OpenPOWER on IntegriCloud