Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/routing
Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
_check_dynamicrouting() | _check_dynamicrouting() | ||||
{ | { | ||||
local skip file name rcvar | local skip file name rcvar | ||||
# copied from /etc/rc | # copied from /etc/rc | ||||
skip="-s nostart" | skip="-s nostart" | ||||
if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then | if check_jail jailed; then | ||||
skip="$skip -s nojail" | skip="$skip -s nojail" | ||||
fi | fi | ||||
[ -n "$local_startup" ] && find_local_scripts_new | [ -n "$local_startup" ] && find_local_scripts_new | ||||
[ -n "$system_rc" ] && find_system_scripts | [ -n "$system_rc" ] && find_system_scripts | ||||
for file in $( rcorder ${skip} ${system_rc} ${local_rc} 2>/dev/null | | for file in $( rcorder ${skip} ${system_rc} ${local_rc} 2>/dev/null | | ||||
xargs grep -lE '^# PROVIDE:.*\<dynamicrouting\>' ); do | xargs grep -lE '^# PROVIDE:.*\<dynamicrouting\>' ); do | ||||
(set -- enabled; . $file) && return 0; | (set -- enabled; . $file) && return 0; | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |