diff options
Diffstat (limited to 'ezjail-admin')
-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) |