1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/nfsclient 136224 2004-10-07 13:55:26Z mtm $
| 3# $FreeBSD: head/etc/rc.d/nfsclient 165683 2006-12-31 10:37:18Z yar $
|
4# 5 6# PROVIDE: nfsclient 7# REQUIRE: NETWORKING mountcritremote rpcbind 8# KEYWORD: nojail shutdown 9 10. /etc/rc.subr 11 12name="nfsclient" 13rcvar="nfs_client_enable" 14start_cmd="nfsclient_start"
| 4# 5 6# PROVIDE: nfsclient 7# REQUIRE: NETWORKING mountcritremote rpcbind 8# KEYWORD: nojail shutdown 9 10. /etc/rc.subr 11 12name="nfsclient" 13rcvar="nfs_client_enable" 14start_cmd="nfsclient_start"
|
15start_precmd="nfsclient_precmd"
| |
16stop_cmd="unmount_all"
| 15stop_cmd="unmount_all"
|
| 16required_modules="nfsclient:nfs"
|
17
| 17
|
18# Load nfs module if it was not compiled into the kernel 19nfsclient_precmd() 20{ 21 if ! sysctl vfs.nfs >/dev/null 2>&1; then 22 if ! kldload nfsclient; then 23 warn 'Could not load nfs client module' 24 return 1 25 fi 26 fi 27 return 0 28} 29
| |
30nfsclient_start() 31{ 32 # 33 # Set some nfs client related sysctls 34 # 35 36 if [ -n "${nfs_access_cache}" ]; then 37 echo "NFS access cache time=${nfs_access_cache}"
--- 20 unchanged lines hidden --- | 18nfsclient_start() 19{ 20 # 21 # Set some nfs client related sysctls 22 # 23 24 if [ -n "${nfs_access_cache}" ]; then 25 echo "NFS access cache time=${nfs_access_cache}"
--- 20 unchanged lines hidden --- |