xref: /freebsd/libexec/rc/rc.d/automount (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
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