Deleted Added
full compact
routed (174438) routed (197144)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/routed 174438 2007-12-08 07:20:23Z dougb $
3# $FreeBSD: head/etc/rc.d/routed 197144 2009-09-12 22:19:48Z hrs $
4#
5
6# PROVIDE: routed
7# REQUIRE: netif routing
8# KEYWORD: nojail
9
10. /etc/rc.subr
11
12name="routed"
4#
5
6# PROVIDE: routed
7# REQUIRE: netif routing
8# KEYWORD: nojail
9
10. /etc/rc.subr
11
12name="routed"
13desc="network RIP and router discovery routing daemon"
14rcvar=`set_rcvar`
13
15
14# XXX - Executable may be in a different location. The $name variable
15# is different from the variable in rc.conf(5) so the
16# subroutines in rc.subr won't catch it.
17#
16set_rcvar_obsolete router_enable routed_enable
17set_rcvar_obsolete router routed_program
18set_rcvar_obsolete router_flags routed_flags
19
18load_rc_config $name
20load_rc_config $name
19rcvar="router_enable"
20command="${router:-/sbin/${name}}"
21eval ${name}_flags=\"${router_flags}\"
22run_rc_command "$1"
21run_rc_command "$1"