mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
b528b5502b
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
22 lines
368 B
Bash
Executable File
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"
|