freebsd-skq/etc/rc.d/routed
hrs 50032d4374 Add an extension of set_rcvar(), a new function set_rcvar_obsolete(),
and $desc.

The set_rcvar_obsolete() is for displaying an obsolete variable
and the new one.  More specifically, a warning is displayed when
a variable is removed or changed in the source tree and the user
still defines the old one.

$router* and $ipv6_router* are replaced with $routed_* and
$route6d_* for consistency.  The old variables still work but
can be removed in the future.

MFC after:	3 days
2009-09-12 22:19:48 +00:00

22 lines
368 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: routed
# REQUIRE: netif routing
# KEYWORD: nojail
. /etc/rc.subr
name="routed"
desc="network RIP and router discovery routing daemon"
rcvar=`set_rcvar`
set_rcvar_obsolete router_enable routed_enable
set_rcvar_obsolete router routed_program
set_rcvar_obsolete router_flags routed_flags
load_rc_config $name
run_rc_command "$1"