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"
|