5ee7ac8886
Replace $critical_filesystems with $critical_filesystems_remote . The new names are now consistent with the type argument that mount_critical_filesystems() is called with, and allows for other types to be easily supported by that function. For backwards compatibility purposes, if the now obsolete variable is defined (even empty), it takes precedence over the new form, and you will be warned. If you want to stop the warnings, update your rc.conf(5) settings!
36 lines
816 B
Bash
Executable File
36 lines
816 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: mountcritremote,v 1.6 2002/03/27 08:53:42 lukem Exp $
|
|
#
|
|
|
|
# PROVIDE: mountcritremote
|
|
# REQUIRE: NETWORKING root mountcritlocal
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="mountcritremote"
|
|
start_cmd="mountcritremote_start"
|
|
stop_cmd=":"
|
|
|
|
mountcritremote_start()
|
|
{
|
|
# If obsolete $critical_filesystems is set,
|
|
# use that instead of $critical_filesystems_remote.
|
|
#
|
|
if [ -n "$critical_filesystems" -o \
|
|
"${critical_filesystems-unset}" != "unset" ]; then
|
|
warn 'Overriding $critical_filesystems_remote with obsolete $critical_filesystems'
|
|
critical_filesystems_remote=$critical_filesystems
|
|
fi
|
|
|
|
# Mount critical filesystems that may be `remote'.
|
|
# (as specified in $critical_filesystems_remote)
|
|
# This usually includes /usr.
|
|
#
|
|
mount_critical_filesystems remote
|
|
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|