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