1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00

Quiet down rc.d/nfsclient by not printing anything in 'quiet' mode. Instead

issue a warning of it fails to set the sysctls.
This commit is contained in:
Mike Makonnen 2008-07-05 15:13:21 +00:00
parent 4f7d1876d5
commit c5a80a7a3b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180294

View File

@ -22,11 +22,15 @@ nfsclient_start()
#
if [ -n "${nfs_access_cache}" ]; then
echo "NFS access cache time=${nfs_access_cache}"
sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null
[ -z "${rc_quiet}" ] && echo "NFS access cache time=${nfs_access_cache}"
if ! sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null; then
warn "failed to set access cache timeout"
fi
fi
if [ -n "${nfs_bufpackets}" ]; then
sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null
if ! sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null; then
warn "failed to set vfs.nfs.bufpackets"
fi
fi
unmount_all