From: Johannes Truschnigg Date: Thu, 17 Mar 2022 18:59:41 +0000 (+0100) Subject: Check for configured interfaces X-Git-Url: https://johannes.truschnigg.info/gitweb/?a=commitdiff_plain;h=2d6e2cfdfdf4397104ec501aa147063cfb6fcee0;p=sqm_lagthrottle Check for configured interfaces --- diff --git a/lagdetect.sh b/lagdetect.sh index b07bbb2..bca7ffa 100755 --- a/lagdetect.sh +++ b/lagdetect.sh @@ -156,6 +156,16 @@ do done +for i in "${IFACE_RX}" "${IFACE_TX}" +do + if ip link show "${i}" >/dev/null + then + printf 'FATAL: Interface "%s" seems bogus\n' "${i}" + exit 1 + fi +done + + set -u