]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/automount
Fix kernel memory disclosure from /dev/midistat.
[FreeBSD/FreeBSD.git] / etc / rc.d / automount
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
13 name="automount"
14 rcvar="autofs_enable"
15 start_cmd="automount_start"
16 stop_cmd="automount_stop"
17 required_modules="autofs"
18
19 automount_start()
20 {
21
22         /usr/sbin/automount ${automount_flags}
23 }
24
25 automount_stop()
26 {
27
28         /sbin/umount -At autofs
29 }
30
31 load_rc_config $name
32 run_rc_command "$1"