#!/bin/sh
#
# $FreeBSD: stable/6/etc/rc.d/mountlate 177449 2008-03-20 10:53:18Z mtm $
#

# PROVIDE: mountlate
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: nojail

. /etc/rc.subr

name="mountlate"
start_cmd="mountlate_start"
stop_cmd=":"

mountlate_start()
{
	local err

	# Mount "late" filesystems.
	echo -n 'Mounting late file systems:'
	mount -a -l
	err=$?
	echo '.'

	case ${err} in
	0)
		;;
	*)
		echo 'Mounting /etc/fstab filesystems failed,' \
		    ' startup aborted'
		stop_boot true
		;;
	esac
}

load_rc_config $name
run_rc_command "$1"
