summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2011-05-08 01:01:27 +0000
committerrmacklem <rmacklem@FreeBSD.org>2011-05-08 01:01:27 +0000
commit901a3daa235b2685556819a6887fb921dc22ffda (patch)
tree86d6fcf536e6b450863156c97acab2609c81b5b9 /etc/rc.d
parente50df263d1f327a3de6248b7f2747e4ca342a99b (diff)
downloadFreeBSD-src-901a3daa235b2685556819a6887fb921dc22ffda.zip
FreeBSD-src-901a3daa235b2685556819a6887fb921dc22ffda.tar.gz
Change the new NFS server so that it uses vfs.nfsd naming
for its sysctls instead of vfs.newnfs. This separates the names from the ones used by the client.
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 402ba2d..f0a65ba 100755
--- a/etc/rc.d/nfsd
+++ b/etc/rc.d/nfsd
@@ -33,13 +33,13 @@ nfsd_precmd()
else
rc_flags="${nfs_server_flags}"
- # Load the modules now, so that the vfs.newnfs sysctl
+ # Load the modules now, so that the vfs.nfsd sysctl
# oids are available.
load_kld nfsd
if checkyesno nfs_reserved_port_only; then
echo 'NFS on reserved port only=YES'
- sysctl vfs.newnfs.nfs_privport=1 > /dev/null
+ sysctl vfs.nfsd.nfs_privport=1 > /dev/null
fi
if checkyesno nfsv4_server_enable; then
@@ -52,7 +52,7 @@ nfsd_precmd()
fi
else
echo 'NFSv4 is disabled'
- sysctl vfs.newnfs.server_max_nfsvers=3 > /dev/null
+ sysctl vfs.nfsd.server_max_nfsvers=3 > /dev/null
fi
fi
OpenPOWER on IntegriCloud