Exclude macvtap interfaces from check.

This commit is contained in:
Romain Dessort 2016-05-12 19:59:26 -04:00
parent 3c9ba79ad5
commit 62b13e9e77

View file

@ -342,7 +342,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|tap)" |cut -d " " -f 1 |tr "\n" " "`; do
for interface in `/sbin/ifconfig -s |tail -n +2 |egrep -v "^(lo|vnet|docker|veth|tap|macvtap)" |cut -d " " -f 1 |tr "\n" " "`; do
grep -q "^auto $interface" /etc/network/interfaces || (echo 'IS_AUTOIF FAILED!' && break)
done
fi