Changeset 35268a6


Ignore:
Timestamp:
08/29/14 09:08:32 (7 weeks ago)
Author:
Kris Moore <kris@…>
Branches:
releng/10.0.3
Children:
19bab26, ebf653d
Parents:
a1151cb
git-author:
Kris Moore <kris@…> (08/29/14 09:07:53)
git-committer:
Kris Moore <kris@…> (08/29/14 09:08:32)
Message:

Add a check to warden, don't try to start jails on invalid
NIC, error out instead

File:
1 edited

Legend:

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

    rdab326c r35268a6  
    305305fi 
    306306 
     307# Check if this interface is valid 
     308ifconfig $IFACE >/dev/null 2>/dev/null 
     309if [ $? -ne 0 ] ; then 
     310   echo "ERROR: No such network interface $IFACE" 
     311   echo "Please set a correct network interface in /usr/local/etc/warden.conf" 
     312   exit 6 
     313fi 
     314 
    307315MTU=`ifconfig ${IFACE} | head -1 | sed -E 's/.*mtu ([0-9]+)/\1/g'` 
    308316 
Note: See TracChangeset for help on using the changeset viewer.