xref: /freebsd/libexec/rc/rc.d/automount (revision 783d3ff6d7fae619db8a7990b8a6387de0c677b5)
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
31run_rc_command "$1"
32