Deleted Added
full compact
mountcritremote (153871) mountcritremote (165683)
1#!/bin/sh
2#
3# $NetBSD: mountcritremote,v 1.7 2002/04/29 12:29:53 lukem Exp $
1#!/bin/sh
2#
3# $NetBSD: mountcritremote,v 1.7 2002/04/29 12:29:53 lukem Exp $
4# $FreeBSD: head/etc/rc.d/mountcritremote 153871 2005-12-30 09:16:23Z rse $
4# $FreeBSD: head/etc/rc.d/mountcritremote 165683 2006-12-31 10:37:18Z yar $
5#
6
7# PROVIDE: mountcritremote
8# REQUIRE: NETWORKING root mountcritlocal cleanvar ipsec
9# KEYWORD: nojail
10
11. /etc/rc.subr
12

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

22# skips nfs in the following block (for "other network filesystems") can
23# be removed.
24#
25mountcritremote_precmd()
26{
27 case "`mount -d -a -t nfs 2> /dev/null`" in
28 *mount_nfs*)
29 # Handle absent nfs client support
5#
6
7# PROVIDE: mountcritremote
8# REQUIRE: NETWORKING root mountcritlocal cleanvar ipsec
9# KEYWORD: nojail
10
11. /etc/rc.subr
12

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

22# skips nfs in the following block (for "other network filesystems") can
23# be removed.
24#
25mountcritremote_precmd()
26{
27 case "`mount -d -a -t nfs 2> /dev/null`" in
28 *mount_nfs*)
29 # Handle absent nfs client support
30 if ! sysctl vfs.nfs >/dev/null 2>&1; then
31 kldload nfsclient || { warn 'nfs mount ' \
32 'requested, but no nfs client in kernel'; \
33 return 1; }
34 fi
30 load_kld -m nfs nfsclient || return 1
35 ;;
36 esac
37 return 0
38}
39
40mountcritremote_start()
41{
42 # Mount nfs filesystems.

--- 36 unchanged lines hidden ---
31 ;;
32 esac
33 return 0
34}
35
36mountcritremote_start()
37{
38 # Mount nfs filesystems.

--- 36 unchanged lines hidden ---