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