summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2008-07-05 15:13:21 +0000
committermtm <mtm@FreeBSD.org>2008-07-05 15:13:21 +0000
commitb9483125e69a5bdf6b538a964db9d2f0418e8bf4 (patch)
treeb3bc5d7034acb4916636ef3c12484e799310ea17 /etc/rc.d
parent051819b84758e212ecd632e9bd6f47e70f37aa3a (diff)
downloadFreeBSD-src-b9483125e69a5bdf6b538a964db9d2f0418e8bf4.zip
FreeBSD-src-b9483125e69a5bdf6b538a964db9d2f0418e8bf4.tar.gz
Quiet down rc.d/nfsclient by not printing anything in 'quiet' mode. Instead
issue a warning of it fails to set the sysctls.
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/nfsclient10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/rc.d/nfsclient b/etc/rc.d/nfsclient
index 4888685..2b26d09 100644
--- a/etc/rc.d/nfsclient
+++ b/etc/rc.d/nfsclient
@@ -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
OpenPOWER on IntegriCloud