diff options
author | cryx <cryx@h3q.com> | 2009-12-29 13:02:56 +0000 |
---|---|---|
committer | cryx <cryx@h3q.com> | 2009-12-29 13:02:56 +0000 |
commit | a11f8ed733eb69518ad6bb492686cda2de7f2bad (patch) | |
tree | c4d0f48278ad7baeaba6eacdded24fec982b4920 | |
parent | 61803a34fccab804ab06d5bc204bcc1e45139c2d (diff) |
Use the jails FIB when attaching via ezjail-admin console
-rwxr-xr-x | ezjail-admin | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin index 77fe9d6..8fab08b 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -953,11 +953,18 @@ console) | |||
953 | # This one will also exerr on failure | 953 | # This one will also exerr on failure |
954 | start_stop_jail_by_script start | 954 | start_stop_jail_by_script start |
955 | fi | 955 | fi |
956 | |||
957 | # use the jails FIB if there is one | ||
958 | if [ -n "${ezjail_fib}" ]; then | ||
959 | _setfib="setfib -F ${ezjail_fib}" | ||
960 | else | ||
961 | _setfib="" | ||
962 | fi | ||
956 | 963 | ||
957 | # Try to attach to jail | 964 | # Try to attach to jail |
958 | [ "${ezjail_execute}" ] && exec jexec ${ezjail_id} ${ezjail_execute} | 965 | [ "${ezjail_execute}" ] && exec ${_setfib} jexec ${ezjail_id} ${ezjail_execute} |
959 | 966 | ||
960 | exec jexec ${ezjail_id} ${ezjail_default_execute} | 967 | exec ${_setfib} jexec ${ezjail_id} ${ezjail_default_execute} |
961 | ;; | 968 | ;; |
962 | ######################## ezjail-admin ARCHIVE ######################## | 969 | ######################## ezjail-admin ARCHIVE ######################## |
963 | archive) | 970 | archive) |