diff options
Diffstat (limited to 'libexec/rc/rc.d/automount')
-rwxr-xr-x | libexec/rc/rc.d/automount | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/automount b/libexec/rc/rc.d/automount new file mode 100755 index 000000000000..19f367837189 --- /dev/null +++ b/libexec/rc/rc.d/automount @@ -0,0 +1,35 @@ +#!/bin/sh +# +# + +# 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 + +# mounting shall not be performed in a svcj +automount_svcj="NO" + +run_rc_command "$1" |