2014-08-17 09:44:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: automount
|
2015-09-18 06:54:52 +00:00
|
|
|
# REQUIRE: nfsclient automountd
|
2014-08-17 09:44:42 +00:00
|
|
|
# KEYWORD: nojail shutdown
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="automount"
|
|
|
|
rcvar="autofs_enable"
|
|
|
|
start_cmd="automount_start"
|
|
|
|
stop_cmd="automount_stop"
|
|
|
|
required_modules="autofs"
|
|
|
|
|
|
|
|
automount_start()
|
|
|
|
{
|
|
|
|
|
2014-11-24 13:02:39 +00:00
|
|
|
/usr/sbin/automount ${automount_flags}
|
2014-08-17 09:44:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
automount_stop()
|
|
|
|
{
|
|
|
|
|
|
|
|
/sbin/umount -At autofs
|
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|