Added tapX interfaces to the exclude list of AUTOIF

This commit is contained in:
Benoît S. 2016-04-21 15:11:25 +02:00
parent 3b8487db7d
commit a2430945a7

View file

@ -321,7 +321,7 @@ if [ -e /etc/debian_version ]; then
# Verify if all if are in auto
if [ "$IS_AUTOIF" = 1 ]; then
for interface in `/sbin/ifconfig -s |tail -n +2 |egrep -v "^(lo|vnet|docker|veth)" |cut -d " " -f 1 |tr "\n" " "`; do
for interface in `/sbin/ifconfig -s |tail -n +2 |egrep -v "^(lo|vnet|docker|veth|tap)" |cut -d " " -f 1 |tr "\n" " "`; do
grep -q "^auto $interface" /etc/network/interfaces || (echo 'IS_AUTOIF FAILED!' && break)
done
fi