Rename private to privdata and class to srclass to avoid conflicts with
[dragonfly/vkernel-mp.git] / etc / rc.d / routed
blobfb3b1be3fd7fefb2fa26b1d9e087726afe48885b
1 #!/bin/sh
3 # $NetBSD: routed,v 1.7 2002/03/22 04:34:00 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/routed,v 1.6 2003/06/29 05:15:57 mtm Exp $
5 # $DragonFly: src/etc/rc.d/routed,v 1.5 2005/11/19 22:47:32 swildner Exp $
8 # PROVIDE: routed
9 # REQUIRE: netif routing
11 . /etc/rc.subr
13 name="routed"
15 # XXX - Executable may be in a different location. The $name variable
16 # is different from the variable in rc.conf(5) so the
17 # subroutines in rc.subr won't catch it.
19 load_rc_config $name
21 rcvar="router_enable"
22 command="/sbin/${name}"
23 eval ${name}_flags=${router_flags}
25 run_rc_command "$1"