forked from evolix/evocheck
Add tun to interfaces to exclude
This commit is contained in:
parent
ee3d82b5c6
commit
3a5fe95bed
|
@ -347,7 +347,7 @@ if [ -e /etc/debian_version ]; then
|
||||||
|
|
||||||
# Verify if all if are in auto
|
# Verify if all if are in auto
|
||||||
if [ "$IS_AUTOIF" = 1 ]; then
|
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)
|
grep -q "^auto $interface" /etc/network/interfaces || (echo 'IS_AUTOIF FAILED!' && break)
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue