Changeset e4da50e


Ignore:
Timestamp:
Nov 8, 2013 10:51:12 AM (8 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
4f9718b, 287fef9, e19f31e
Parents:
c79bd1a
Message:

Fix a bug in warden, use the specified default interface

Location:
src-sh/warden/scripts/backend
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/backend/startjail.sh

    r2c39b15 re4da50e  
    285285 
    286286IFACE= 
     287 
    287288DEFAULT=0 
    288289 
     
    292293fi 
    293294if [ -z "${IFACE}" ] ; then 
    294    IFACE=`get_default_interface` 
    295    DEFAULT=1 
     295  if [ -n "$NIC" ] ; then 
     296    IFACE="$NIC" 
     297  else 
     298    IFACE=`get_default_interface` 
     299    DEFAULT=1 
     300  fi 
    296301fi 
    297302if [ -z "${IFACE}" ] ; then 
  • src-sh/warden/scripts/backend/stopjail.sh

    r2c39b15 re4da50e  
    5252fi 
    5353if [ -z "${IFACE}" ] ; then 
    54    IFACE=`get_default_interface` 
    55    DEFAULT=1 
     54  if [ -n "$NIC" ] ; then 
     55    IFACE="$NIC" 
     56  else 
     57    IFACE=`get_default_interface` 
     58    DEFAULT=1 
     59  fi 
    5660fi 
    5761if [ -z "${IFACE}" ] ; then 
Note: See TracChangeset for help on using the changeset viewer.