summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2011-07-07 20:59:42 +0000
committerrmacklem <rmacklem@FreeBSD.org>2011-07-07 20:59:42 +0000
commit8a9d1b7f5df1fc9be361f6d4adca10d2344994b6 (patch)
tree8fce525d7abe2aa64b67182799fc2faad8f76ed7 /etc/rc.d
parent9d0e437193c863bf1af8d6104a6d9d7b8c7aebe0 (diff)
downloadFreeBSD-src-8a9d1b7f5df1fc9be361f6d4adca10d2344994b6.zip
FreeBSD-src-8a9d1b7f5df1fc9be361f6d4adca10d2344994b6.tar.gz
Fix the /etc/rc.d/nfsd script so that it no longer uses
the /etc/rc.d/nfsserver script to load the old nfs server module. Tested by: sgk at troutmask.apl.washington.edu Reviewed by: rc (hrs)
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/nfsd6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/nfsd b/etc/rc.d/nfsd
index f0a65ba..8dae57c 100755
--- a/etc/rc.d/nfsd
+++ b/etc/rc.d/nfsd
@@ -22,9 +22,9 @@ nfsd_precmd()
if checkyesno oldnfs_server_enable; then
rc_flags="-o ${nfs_server_flags}"
- if ! sysctl vfs.nfsrv >/dev/null 2>&1; then
- force_depend nfsserver || return 1
- fi
+ # Load the module now, so that the vfs.nfsrv sysctl
+ # oids are available.
+ load_kld nfsserver
if checkyesno nfs_reserved_port_only; then
echo 'NFS on reserved port only=YES'
OpenPOWER on IntegriCloud