xref: /freebsd/libexec/rc/rc.d/automount (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1#!/bin/sh
2#
3#
4
5# PROVIDE: automount
6# REQUIRE: nfsclient automountd
7# BEFORE: DAEMON
8# KEYWORD: nojail shutdown
9
10. /etc/rc.subr
11
12name="automount"
13rcvar="autofs_enable"
14start_cmd="automount_start"
15stop_cmd="automount_stop"
16required_modules="autofs"
17
18automount_start()
19{
20
21	/usr/sbin/automount ${automount_flags}
22}
23
24automount_stop()
25{
26
27	/sbin/umount -At autofs
28}
29
30load_rc_config $name
31
32# mounting shall not be performed in a svcj
33automount_svcj="NO"
34
35run_rc_command "$1"
36