2018-01-09 06:31:12 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2019-08-07 22:30:00 +03:00
|
|
|
# $NetBSD: automount,v 1.2 2019/08/07 19:30:00 nakayama Exp $
|
2018-01-09 06:31:12 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: automount
|
|
|
|
# REQUIRE: automountd
|
|
|
|
# KEYWORD: nojail shutdown
|
|
|
|
|
2019-08-07 22:30:00 +03:00
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
2018-01-09 06:31:12 +03:00
|
|
|
|
|
|
|
name="automount"
|
|
|
|
rcvar="autofs"
|
|
|
|
start_cmd="automount_start"
|
|
|
|
stop_cmd="automount_stop"
|
|
|
|
required_modules="autofs"
|
|
|
|
|
|
|
|
automount_start()
|
|
|
|
{
|
|
|
|
|
|
|
|
/usr/sbin/automount ${automount_flags}
|
|
|
|
}
|
|
|
|
|
|
|
|
automount_stop()
|
|
|
|
{
|
|
|
|
|
|
|
|
/sbin/umount -At autofs
|
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|