#!/bin/sh
#
# $FreeBSD: ports/net/openospfd/files/openospfd.sh.in,v 1.1 2006/03/20 10:41:04 flz Exp $
#

# PROVIDE: ospfd
# REQUIRE: LOGIN abi
# BEFORE:  securelevel
# KEYWORD: shutdown

# Add the following line to /etc/rc.conf to enable `openospfd':
#
# openospfd_enable="YES"
#
# See ospfd(8) for openospfd_flags
#

. "/etc/rc.subr"

name="openospfd"
rcvar=`set_rcvar`

extra_commands="reload"
command="/usr/local/sbin/ospfd"
required_files="/usr/local/etc/ospfd.conf"

load_rc_config "$name"
: ${openospfd_enable="NO"}
: ${openospfd_flags=""}

run_rc_command "$1"
