summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/mountcritremote
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-12-31 10:37:18 +0000
committeryar <yar@FreeBSD.org>2006-12-31 10:37:18 +0000
commitdc9f8423c3772111565181a8568c60c4da0a1689 (patch)
tree7ed36d4fe8965c59b37bcccfa387cf77469cbeef /etc/rc.d/mountcritremote
parent58a4c67f05bc56e76c61ca19ed42f2e412cfd55f (diff)
downloadFreeBSD-src-dc9f8423c3772111565181a8568c60c4da0a1689.zip
FreeBSD-src-dc9f8423c3772111565181a8568c60c4da0a1689.tar.gz
Use $required_modules wherever suitable. Use load_kld() in special
cases. So we get rid of quite a few lines of duplicated code.
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