aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/routing
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rc/rc.d/routing')
-rwxr-xr-xlibexec/rc/rc.d/routing2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rc/rc.d/routing b/libexec/rc/rc.d/routing
index 893acb83cf4a..dd75604125a3 100755
--- a/libexec/rc/rc.d/routing
+++ b/libexec/rc/rc.d/routing
@@ -331,7 +331,7 @@ _check_dynamicrouting()
# copied from /etc/rc
skip="-s nostart"
- if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then
+ if check_jail jailed; then
skip="$skip -s nojail"
fi
[ -n "$local_startup" ] && find_local_scripts_new