xref: /dflybsd-src/etc/rc.d/routed (revision 7b6e6c5103d3bd902d4aea57b24e08b777d536aa)
19c600e7dSMatthew Dillon#!/bin/sh
29c600e7dSMatthew Dillon#
39c600e7dSMatthew Dillon# $NetBSD: routed,v 1.7 2002/03/22 04:34:00 thorpej Exp $
49c600e7dSMatthew Dillon# $FreeBSD: src/etc/rc.d/routed,v 1.6 2003/06/29 05:15:57 mtm Exp $
59c600e7dSMatthew Dillon#
69c600e7dSMatthew Dillon
79c600e7dSMatthew Dillon# PROVIDE: routed
89c600e7dSMatthew Dillon# REQUIRE: netif routing
9ce083385SAaron LI# BEFORE:  NETWORKING
109c600e7dSMatthew Dillon
119c600e7dSMatthew Dillon. /etc/rc.subr
129c600e7dSMatthew Dillon
139c600e7dSMatthew Dillonname="routed"
149c600e7dSMatthew Dillon
159c600e7dSMatthew Dillon# XXX - Executable may be in a different location. The $name variable
169c600e7dSMatthew Dillon#       is different from the variable in rc.conf(5) so the
179c600e7dSMatthew Dillon#       subroutines in rc.subr won't catch it.
189c600e7dSMatthew Dillon#
199c600e7dSMatthew Dillonload_rc_config $name
209c600e7dSMatthew Dillon
219c600e7dSMatthew Dillonrcvar="router_enable"
2257093e34SSascha Wildnercommand="${router_program:-/sbin/${name}}"
23*7b6e6c51SAaron LIeval ${name}_flags=\$router_flags
249c600e7dSMatthew Dillon
259c600e7dSMatthew Dillonrun_rc_command "$1"
26