From 82e4afb8b69f5f1aa9097c9a7d1df402d7bb254b Mon Sep 17 00:00:00 2001 From: Olivier Huber Date: Tue, 29 Dec 2009 23:34:37 +0100 Subject: [PATCH] [./Probes/mac] Import initial darcs-hash:20091229223437-8fbb1-61a4e696593371a10d62742b9fc409b5f335ca89.gz --- Probes/mac | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 Probes/mac diff --git a/Probes/mac b/Probes/mac new file mode 100755 index 0000000..3b3036c --- /dev/null +++ b/Probes/mac @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "group:mac" + +exec ip -6 a show | egrep "(^[0-9]*:|scope link)" | tail -n +2 | sed -e 's/^[0-9]*: //' -e 's/: <.*$//g' -e 's/@.*//g' -e 's/^.*fe80:://g' -e 's:/64.*$::g'