diff options
author | dougb <dougb@FreeBSD.org> | 2006-02-20 21:54:30 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2006-02-20 21:54:30 +0000 |
commit | 21c7116ab96e05eee3dec42c659b7cf60477c0fb (patch) | |
tree | 02005687908a65d182fa27ff2f277a1836ee8bcf /etc/rc | |
parent | 81ad9cc48bcce676589af936b0262af3fc22d162 (diff) | |
download | FreeBSD-src-21c7116ab96e05eee3dec42c659b7cf60477c0fb.zip FreeBSD-src-21c7116ab96e05eee3dec42c659b7cf60477c0fb.tar.gz |
Attempt to make running the new rc in a jail more automatic by
resetting of early_late_divider to a more appropriate value if
the admin has not modified the default.
Reviewed by: brooks
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -73,7 +73,12 @@ echo "Loading configuration files." load_rc_config 'XXX' skip="-s nostart" -[ `/sbin/sysctl -n security.jail.jailed` -eq 1 ] && skip="$skip -s nojail" +if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then + skip="$skip -s nojail" + if [ "$early_late_divider" = "mountcritlocal" ]; then + early_late_divider=NETWORKING + fi +fi # Do a first pass to get everything up to $early_late_divider so that # we can do a second pass that includes $local_startup directories |