From 28510afc5f553ca1f8c3b6ac5db9050854fbc04e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Sun, 10 Feb 2013 16:37:15 +0100 Subject: [PATCH] [probes/mac] On ignore l'interface loop --- Probes/mac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Probes/mac b/Probes/mac index aeba027..f2693e4 100755 --- a/Probes/mac +++ b/Probes/mac @@ -2,4 +2,4 @@ echo "group:mac" -exec ip -6 a show | egrep "(^[0-9]*:|scope link)" | tail -n +1 | sed -e 's/^[0-9]*: //' -e 's/: <.*$//g' -e 's/@.*//g' -e 's/^.*fe80:://g' -e 's:/64.*$::g' +exec ip -6 a show | grep -v "lo:" | egrep "(^[0-9]*:|scope link)" | tail -n +1 | sed -e 's/^[0-9]*: //' -e 's/: <.*$//g' -e 's/@.*//g' -e 's/^.*fe80:://g' -e 's:/64.*$::g'