Home | History | Annotate | Line # | Download | only in rc.d
      1 #!/bin/sh
      2 #
      3 # $NetBSD: automount,v 1.2 2019/08/07 19:30:00 nakayama Exp $
      4 #
      5 
      6 # PROVIDE: automount
      7 # REQUIRE: automountd
      8 # KEYWORD: nojail shutdown
      9 
     10 $_rc_subr_loaded . /etc/rc.subr
     11 
     12 name="automount"
     13 rcvar="autofs"
     14 start_cmd="automount_start"
     15 stop_cmd="automount_stop"
     16 required_modules="autofs"
     17 
     18 automount_start()
     19 {
     20 
     21 	/usr/sbin/automount ${automount_flags}
     22 }
     23 
     24 automount_stop()
     25 {
     26 
     27 	/sbin/umount -At autofs
     28 }
     29 
     30 load_rc_config $name
     31 run_rc_command "$1"
     32