diff options
author | mtm <mtm@FreeBSD.org> | 2008-07-05 15:13:21 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-07-05 15:13:21 +0000 |
commit | b9483125e69a5bdf6b538a964db9d2f0418e8bf4 (patch) | |
tree | b3bc5d7034acb4916636ef3c12484e799310ea17 /etc | |
parent | 051819b84758e212ecd632e9bd6f47e70f37aa3a (diff) | |
download | FreeBSD-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')
-rw-r--r-- | etc/rc.d/nfsclient | 10 |
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 |