]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/mountcritlocal
This commit was generated by cvs2svn to compensate for changes in r167617,
[FreeBSD/FreeBSD.git] / etc / rc.d / mountcritlocal
1 #!/bin/sh
2 #
3 # $NetBSD: mountcritlocal,v 1.7 2002/04/29 12:29:53 lukem Exp $
4 # $FreeBSD$
5 #
6
7 # PROVIDE: mountcritlocal
8 # REQUIRE: root
9 # KEYWORD: nojail
10
11 . /etc/rc.subr
12
13 name="mountcritlocal"
14 start_cmd="mountcritlocal_start"
15 stop_cmd=":"
16
17 mountcritlocal_start()
18 {
19         # Set up the list of network filesystem types for which mounting
20         # should be delayed until after network initialization.
21         case ${extra_netfs_types} in
22         [Nn][Oo])
23                 ;;
24         *)
25                 netfs_types="${netfs_types} ${extra_netfs_types}"
26                 ;;
27         esac
28
29         # Mount everything except nfs filesystems.
30         echo -n 'Mounting local file systems:'
31         mount_excludes='no'
32         for i in ${netfs_types}; do
33                 fstype=${i%:*}
34                 mount_excludes="${mount_excludes}${fstype},"
35         done
36         mount_excludes=${mount_excludes%,}
37         mount -a -t ${mount_excludes}
38         echo '.'
39
40         case $? in
41         0)
42                 ;;
43         *)
44                 echo 'Mounting /etc/fstab filesystems failed,' \
45                     ' startup aborted'
46                 kill -QUIT $$
47                 ;;
48         esac
49 }
50
51 load_rc_config $name
52 run_rc_command "$1"