From 41cee2d7513fad9fed09c1e6fd902b4bec823ec8 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 31 Oct 2014 19:59:24 +0100 Subject: check-new-if: only report interfaces "lo" and "eth" Otherwise some annoying interfaces such as "bond0", "tunl0", "sit0" might appear if the drivers are linked into the kernel or already loaded. --- check-new-if | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-new-if b/check-new-if index c6d2507..03d4a01 100755 --- a/check-new-if +++ b/check-new-if @@ -15,7 +15,7 @@ awk -v f=/etc/config.rc '\ BEGIN { old=""; changed=0; while ("sort /proc/net/dev" | getline) - if (sub(":$", "", $1)) { + if (sub(":$", "", $1) && ($1 == "lo" || $1 ~ "^eth[0-9].*")) { prv[$1]=old; nxt[old]=$1; decl[$1]=0; -- 1.7.12.1