#!/bin/sh
#
# $FreeBSD: stable/7/etc/rc.d/routed 231656 2012-02-14 10:17:30Z dougb $
#

# PROVIDE: routed
# REQUIRE: netif routing
# KEYWORD: nojail

. /etc/rc.subr

name="routed"
rcvar="router_enable"

# XXX - Executable may be in a different location. The $name variable
#       is different from the variable in rc.conf(5) so the
#       subroutines in rc.subr won't catch it.
#
load_rc_config $name
command="${router:-/sbin/${name}}"
eval ${name}_flags=\"${router_flags}\"
run_rc_command "$1"
