9dd342fee6
in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than necessary). The NetBSD ident string will be left intact, both for history and also incase we wish to pull in future versions.
51 lines
904 B
Bash
Executable File
51 lines
904 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: mountcritlocal,v 1.7 2002/04/29 12:29:53 lukem Exp $
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: mountcritlocal
|
|
# REQUIRE: root
|
|
# KEYWORD: FreeBSD
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="mountcritlocal"
|
|
start_cmd="mountcritlocal_start"
|
|
stop_cmd=":"
|
|
|
|
mountcritlocal_start()
|
|
{
|
|
# Set up the list of network filesystem types for which mounting
|
|
# should be delayed until after network initialization.
|
|
case ${extra_netfs_types} in
|
|
[Nn][Oo])
|
|
;;
|
|
*)
|
|
netfs_types="${netfs_types} ${extra_netfs_types}"
|
|
;;
|
|
esac
|
|
|
|
# Mount everything except nfs filesystems.
|
|
mount_excludes='no'
|
|
for i in ${netfs_types}; do
|
|
fstype=${i%:*}
|
|
mount_excludes="${mount_excludes}${fstype},"
|
|
done
|
|
mount_excludes=${mount_excludes%,}
|
|
mount -a -t ${mount_excludes}
|
|
|
|
case $? in
|
|
0)
|
|
;;
|
|
*)
|
|
echo 'Mounting /etc/fstab filesystems failed,' \
|
|
' startup aborted'
|
|
kill -QUIT $$
|
|
;;
|
|
esac
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|