Home | History | Annotate | Line # | Download | only in rc.d
mountcritremote revision 1.6
      1  1.1  lukem #!/bin/sh
      2  1.1  lukem #
      3  1.6  lukem # $NetBSD: mountcritremote,v 1.6 2002/03/27 08:53:42 lukem Exp $
      4  1.1  lukem #
      5  1.1  lukem 
      6  1.1  lukem # PROVIDE: mountcritremote
      7  1.5  lukem # REQUIRE: NETWORKING root mountcritlocal
      8  1.1  lukem 
      9  1.1  lukem . /etc/rc.subr
     10  1.1  lukem 
     11  1.1  lukem name="mountcritremote"
     12  1.6  lukem start_cmd="mountcritremote_start"
     13  1.1  lukem stop_cmd=":"
     14  1.6  lukem 
     15  1.6  lukem mountcritremote_start()
     16  1.6  lukem {
     17  1.6  lukem 	#	If obsolete $critical_filesystems is set,
     18  1.6  lukem 	#	use that instead of $critical_filesystems_remote.
     19  1.6  lukem 	#
     20  1.6  lukem 	if [ -n "$critical_filesystems" -o \
     21  1.6  lukem 	    "${critical_filesystems-unset}" != "unset" ]; then
     22  1.6  lukem 		warn 'Overriding $critical_filesystems_remote with obsolete $critical_filesystems'
     23  1.6  lukem 		critical_filesystems_remote=$critical_filesystems
     24  1.6  lukem 	fi
     25  1.6  lukem 
     26  1.6  lukem 	#	Mount critical filesystems that may be `remote'.
     27  1.6  lukem 	#	(as specified in $critical_filesystems_remote)
     28  1.6  lukem 	#	This usually includes /usr.
     29  1.6  lukem 	#
     30  1.6  lukem 	mount_critical_filesystems remote
     31  1.6  lukem 
     32  1.6  lukem }
     33  1.1  lukem 
     34  1.2  lukem load_rc_config $name
     35  1.1  lukem run_rc_command "$1"
     36