]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - etc/rc.d/automount
MFC r324312: fix the misleading log facility used in devd/zfs.conf
[FreeBSD/stable/10.git] / etc / rc.d / automount
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: automount
7 # REQUIRE: nfsclient automountd
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"