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:
Brooks Davis 2023-07-07 23:25:11 +01:00
parent 3541d90836
commit f55ef85748

View file

@ -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