From 037452911c50ff467ab6f77326316c2ec7e001b6 Mon Sep 17 00:00:00 2001 From: Brice Waegeneire Date: Tue, 2 Aug 2022 16:26:16 +0200 Subject: [PATCH] Ignore non auto bond interfaces in blullseye --- evocheck.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 21672f2..690e524 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -576,8 +576,11 @@ check_network_interfaces() { } # Verify if all if are in auto check_autoif() { - if is_debian_stretch || is_debian_buster || is_debian_bullseye; then + if is_debian_stretch || is_debian_buster; then interfaces=$(/sbin/ip address show up | grep "^[0-9]*:" | grep -E -v "(lo|vnet|docker|veth|tun|tap|macvtap|vrrp|lxcbr|wg)" | cut -d " " -f 2 | tr -d : | cut -d@ -f1 | tr "\n" " ") + elif is_debian_bullseye; then + interfaces=$(/sbin/ip address show up | grep "^[0-9]*:" | grep -E -v "(lo|vnet|docker|veth|tun|tap|macvtap|vrrp|lxcbr|wg|bond)" | cut -d " " -f 2 | tr -d : | cut -d@ -f1 | tr "\n" " ") + else interfaces=$(/sbin/ifconfig -s | tail -n +2 | grep -E -v "^(lo|vnet|docker|veth|tun|tap|macvtap|vrrp)" | cut -d " " -f 1 |tr "\n" " ") fi