#! /bin/sh
#
# $NetBSD: anacron.sh,v 1.1.1.1 2004/04/11 11:33:46 jmmv Exp $
#
# PROVIDE: anacron
# REQUIRE: LOGIN

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="anacron"
rcvar=$name
command="/usr/pkg/sbin/${name}"
required_files="/usr/pkg/etc/anacrontab"
command_args="-t /usr/pkg/etc/anacrontab"

if [ -f /etc/rc.subr ]; then
	load_rc_config $name
	run_rc_command "$1"
else
	echo -n ' ${name}'
	${command} ${anacron_flags} ${command_args}
fi
