mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
etc/rc.d/routing: use find_system_scripts
In 3693d9140e
/etc/rc switched to using
find_system_scripts rather than directly including /etc/rc.d/* in the
list of scripts to run in order to skip .pkgsave files. Follow suit
in etc/rc.d/routing.
Sponsored by: DARPA
This commit is contained in:
parent
3541d90836
commit
f55ef85748
|
@ -336,8 +336,9 @@ _check_dynamicrouting()
|
|||
skip="$skip -s nojail"
|
||||
fi
|
||||
[ -n "$local_startup" ] && find_local_scripts_new
|
||||
[ -n "$system_rc" ] && find_system_scripts
|
||||
|
||||
for file in $( rcorder ${skip} /etc/rc.d/* ${local_rc} 2>/dev/null |
|
||||
for file in $( rcorder ${skip} ${system_rc} ${local_rc} 2>/dev/null |
|
||||
xargs grep -lE '^# PROVIDE:.*\<dynamicrouting\>' ); do
|
||||
(set -- enabled; . $file) && return 0;
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue