Deleted Added
full compact
nfsclient (180563) nfsclient (197947)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/nfsclient 180563 2008-07-16 19:22:48Z dougb $
3# $FreeBSD: head/etc/rc.d/nfsclient 197947 2009-10-10 22:17:03Z dougb $
4#
5
6# PROVIDE: nfsclient
7# REQUIRE: NETWORKING mountcritremote rpcbind
8# KEYWORD: nojail shutdown
9
10. /etc/rc.subr
11

--- 5 unchanged lines hidden (view full) ---

17
18nfsclient_start()
19{
20 #
21 # Set some nfs client related sysctls
22 #
23
24 if [ -n "${nfs_access_cache}" ]; then
4#
5
6# PROVIDE: nfsclient
7# REQUIRE: NETWORKING mountcritremote rpcbind
8# KEYWORD: nojail shutdown
9
10. /etc/rc.subr
11

--- 5 unchanged lines hidden (view full) ---

17
18nfsclient_start()
19{
20 #
21 # Set some nfs client related sysctls
22 #
23
24 if [ -n "${nfs_access_cache}" ]; then
25 [ -z "${rc_quiet}" ] && echo "NFS access cache time=${nfs_access_cache}"
25 check_startmsgs &&
26 echo "NFS access cache time=${nfs_access_cache}"
26 if ! sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null; then
27 warn "failed to set access cache timeout"
28 fi
29 fi
30 if [ -n "${nfs_bufpackets}" ]; then
31 if ! sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null; then
32 warn "failed to set vfs.nfs.bufpackets"
33 fi

--- 16 unchanged lines hidden ---
27 if ! sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null; then
28 warn "failed to set access cache timeout"
29 fi
30 fi
31 if [ -n "${nfs_bufpackets}" ]; then
32 if ! sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null; then
33 warn "failed to set vfs.nfs.bufpackets"
34 fi

--- 16 unchanged lines hidden ---