From a11f8ed733eb69518ad6bb492686cda2de7f2bad Mon Sep 17 00:00:00 2001 From: cryx Date: Tue, 29 Dec 2009 13:02:56 +0000 Subject: Use the jails FIB when attaching via ezjail-admin console --- ezjail-admin | 11 +++++++++-- 1 file 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) # This one will also exerr on failure start_stop_jail_by_script start fi + + # use the jails FIB if there is one + if [ -n "${ezjail_fib}" ]; then + _setfib="setfib -F ${ezjail_fib}" + else + _setfib="" + fi # Try to attach to jail - [ "${ezjail_execute}" ] && exec jexec ${ezjail_id} ${ezjail_execute} + [ "${ezjail_execute}" ] && exec ${_setfib} jexec ${ezjail_id} ${ezjail_execute} - exec jexec ${ezjail_id} ${ezjail_default_execute} + exec ${_setfib} jexec ${ezjail_id} ${ezjail_default_execute} ;; ######################## ezjail-admin ARCHIVE ######################## archive) -- cgit v1.2.3