summaryrefslogtreecommitdiff
path: root/etc/rc.d/automount
blob: b5dd1a0c48c071bdcc17b51bed583df8b67025eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
#
# $NetBSD: automount,v 1.2 2019/08/07 19:30:00 nakayama Exp $
#

# PROVIDE: automount
# REQUIRE: automountd
# KEYWORD: nojail shutdown

$_rc_subr_loaded . /etc/rc.subr

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"