automount revision 276504
1#!/bin/sh 2# 3# $FreeBSD: stable/10/etc/rc.d/automount 276504 2015-01-01 15:48:12Z trasz $ 4# 5 6# PROVIDE: automount 7# REQUIRE: nfsclient 8# KEYWORD: nojail shutdown 9 10. /etc/rc.subr 11 12name="automount" 13rcvar="autofs_enable" 14start_cmd="automount_start" 15stop_cmd="automount_stop" 16required_modules="autofs" 17 18automount_start() 19{ 20 21 /usr/sbin/automount ${automount_flags} 22} 23 24automount_stop() 25{ 26 27 /sbin/umount -At autofs 28} 29 30load_rc_config $name 31run_rc_command "$1" 32