When this script included NetBSD specific logic, the NetBSD branch
included a start_precmd check for gated. The precommand was not executed in the FreeBSD branch. When I did a mass removal of NetBSD specific logic a while back this file apparently got only a partial treatement. This bug did not have any functional consequences, however, since the precommand was not declared to the rc.subr routines. Noticed by: pjd
This commit is contained in:
parent
7b7e363916
commit
fdf7479859
@ -17,18 +17,7 @@ name="routed"
|
||||
# subroutines in rc.subr won't catch it.
|
||||
#
|
||||
load_rc_config $name
|
||||
|
||||
rcvar="router_enable"
|
||||
command="${router:-/sbin/${name}}"
|
||||
eval ${name}_flags=${router_flags}
|
||||
start_precmd=
|
||||
|
||||
routed_precmd()
|
||||
{
|
||||
if checkyesno gated && checkyesno routed; then
|
||||
warn "gated and routed both requested to be run: only running gated."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user