From 3a5fe95bed23c56760593a9c16b0068c6d534ef5 Mon Sep 17 00:00:00 2001 From: Romain Dessort Date: Fri, 3 Feb 2017 10:42:30 -0500 Subject: [PATCH] Add tun to interfaces to exclude --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index de8862d..c47cf50 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -347,7 +347,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|macvtap)" |cut -d " " -f 1 |tr "\n" " "`; do + for interface in `/sbin/ifconfig -s |tail -n +2 |egrep -v "^(lo|vnet|docker|veth|tun|tap|macvtap)" |cut -d " " -f 1 |tr "\n" " "`; do grep -q "^auto $interface" /etc/network/interfaces || (echo 'IS_AUTOIF FAILED!' && break) done fi