Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/init/rc.d/automount
Property | Old Value | New Value |
---|---|---|
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
#!/bin/sh | |||||
# | |||||
# $FreeBSD$ | |||||
# | |||||
# PROVIDE: automount | |||||
# REQUIRE: nfsclient automountd | |||||
# BEFORE: DAEMON | |||||
# 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_flags} | |||||
} | |||||
automount_stop() | |||||
{ | |||||
/sbin/umount -At autofs | |||||
} | |||||
load_rc_config $name | |||||
run_rc_command "$1" |