]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - etc/rc.d/routed
MFC r230099:
[FreeBSD/stable/8.git] / etc / rc.d / routed
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: routed
7 # REQUIRE: netif routing
8 # KEYWORD: nojail
9
10 . /etc/rc.subr
11
12 name="routed"
13 rcvar="router_enable"
14
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.
18 #
19 load_rc_config $name
20 command="${router:-/sbin/${name}}"
21 eval ${name}_flags=\"${router_flags}\"
22 run_rc_command "$1"