Changeset 96c50776


Ignore:
Timestamp:
May 18, 2013 7:55:53 AM (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
c7cb913
Parents:
bc2ed8d4
Message:

Add a bit o' magic to warden backend, if user forgot to specify
a bridge address for IPV4, we can add one on the fly

File:
1 edited

Legend:

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

    r43c8ecf r96c50776  
    225225ifconfig ${BRIDGE} addm ${EPAIRA} up 
    226226 
     227# If no bridge specified, and IP4 is enabled, lets suggest one 
     228if [ -z "$BRIDGEIP4" -a -n "$IP4" ] ; then 
     229   BRIDGEIP4="`echo $IP4 | cut -d '.' -f 1-3`.254" 
     230fi  
     231 
    227232if [ -n "${BRIDGEIP4}" ] ; then 
    228233   if ! ipv4_configured "${BRIDGE}" ; then 
Note: See TracChangeset for help on using the changeset viewer.