kernel - Add kprintf0() (#ifdef'd out)
[dragonfly.git] / etc / rc.d / mountcritlocal
blob50b72fe85fb80a589e69b9035b8504bf32582a55
1 #!/bin/sh
3 # $NetBSD: mountcritlocal,v 1.7 2002/04/29 12:29:53 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/mountcritlocal,v 1.5 2003/06/01 01:43:37 gordon Exp $
5 # $DragonFly: src/etc/rc.d/mountcritlocal,v 1.5 2005/11/19 21:47:32 swildner Exp $
8 # PROVIDE: mountcritlocal
9 # REQUIRE: root
11 . /etc/rc.subr
13 name="mountcritlocal"
14 start_cmd="mountcritlocal_start"
15 stop_cmd=":"
17 mountcritlocal_start()
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])
25 netfs_types="${netfs_types} ${extra_netfs_types}"
27 esac
29 # Mount everything except nfs filesystems.
30 mount_excludes='no'
31 for i in ${netfs_types}; do
32 fstype=${i%:*}
33 mount_excludes="${mount_excludes}${fstype},"
34 done
35 mount_excludes=${mount_excludes%,}
36 mount -a -t ${mount_excludes}
37 case $? in
41 echo 'Mounting /etc/fstab filesystems failed,' \
42 ' startup aborted'
43 exit 1
45 esac
49 load_rc_config $name
50 run_rc_command "$1"