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