]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - etc/rc.d/automount
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / etc / rc.d / automount
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: automount
7 # REQUIRE: nfsclient
8 # KEYWORD: nojail shutdown
9
10 . /etc/rc.subr
11
12 name="automount"
13 rcvar="autofs_enable"
14 start_cmd="automount_start"
15 stop_cmd="automount_stop"
16 required_modules="autofs"
17
18 automount_start()
19 {
20
21         /usr/sbin/automount ${automount_flags}
22 }
23
24 automount_stop()
25 {
26
27         /sbin/umount -At autofs
28 }
29
30 load_rc_config $name
31 run_rc_command "$1"