mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
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:
parent
6069a2c0bd
commit
c4c07ee035
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223847
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue