freebsd-dev/etc/rc.d/route6d
Hiroki Sato b528b5502b 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

21 lines
333 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: route6d
# REQUIRE: netif routing
# KEYWORD: nojail
. /etc/rc.subr
name="route6d"
rcvar=`set_rcvar`
set_rcvar_obsolete ipv6_router_enable route6d_enable
set_rcvar_obsolete ipv6_router route6d_program
set_rcvar_obsolete ipv6_router_flags route6d_flags
load_rc_config $name
run_rc_command "$1"