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)
This commit is contained in:
Rick Macklem 2011-07-07 20:59:42 +00:00
parent 6069a2c0bd
commit c4c07ee035
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223847

View file

@ -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'