diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2011-07-07 20:59:42 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2011-07-07 20:59:42 +0000 |
commit | 8a9d1b7f5df1fc9be361f6d4adca10d2344994b6 (patch) | |
tree | 8fce525d7abe2aa64b67182799fc2faad8f76ed7 /etc/rc.d | |
parent | 9d0e437193c863bf1af8d6104a6d9d7b8c7aebe0 (diff) | |
download | FreeBSD-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-x | etc/rc.d/nfsd | 6 |
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' |