3 # $FreeBSD: src/etc/rc.d/nfsclient,v 1.3 2002/10/12 10:31:31 schweikh Exp $
7 # REQUIRE: NETWORKING mountcritremote rpcbind
13 rcvar="nfs_client_enable"
14 start_cmd="nfsclient_start"
15 start_precmd="nfsclient_precmd"
16 stop_cmd="unmount_all"
18 # Load nfs module if it was not compiled into the kernel
21 kldload -n nfs || return 1
28 # Set some nfs client related sysctls
31 if [ -n "${nfs_access_cache}" ]; then
32 sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null
34 if [ -n "${nfs_neg_cache}" ]; then
35 sysctl vfs.nfs.neg_cache_timeout=${nfs_neg_cache} >/dev/null
37 if [ -n "${nfs_bufpackets}" ]; then
38 sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null
40 echo -n " access_cache_timeout=`sysctl -n vfs.nfs.access_cache_timeout`"
41 echo -n " neg_cache_timeout=`sysctl -n vfs.nfs.neg_cache_timeout`"
47 # If /var/db/mounttab exists, some nfs-server has not been
48 # successfully notified about a previous client shutdown.
49 # If there is no /var/db/mounttab, we do nothing.
51 if checkyesno rpc_umntall_enable; then
52 if [ -f /var/db/mounttab ]; then
53 echo -n ' rpc.umntall'