cac9beab7d
UNIX systems, eg. MacOS X and Solaris. It uses Sun-compatible map format, has proper kernel support, and LDAP integration. There are still a few outstanding problems; they will be fixed shortly. Reviewed by: allanjude@, emaste@, kib@, wblock@ (earlier versions) Phabric: D523 MFC after: 2 weeks Relnotes: yes Sponsored by: The FreeBSD Foundation
32 lines
367 B
Bash
32 lines
367 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: automount
|
|
# REQUIRE: nfsclient
|
|
# KEYWORD: nojail shutdown
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="automount"
|
|
rcvar="autofs_enable"
|
|
start_cmd="automount_start"
|
|
stop_cmd="automount_stop"
|
|
required_modules="autofs"
|
|
|
|
automount_start()
|
|
{
|
|
|
|
/usr/sbin/automount
|
|
}
|
|
|
|
automount_stop()
|
|
{
|
|
|
|
/sbin/umount -At autofs
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|