diff options
-rw-r--r-- | net/arping.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/arping.sh b/net/arping.sh index ef1f9e7a..b77d70c1 100644 --- a/net/arping.sh +++ b/net/arping.sh @@ -40,7 +40,7 @@ arping_address() [ -z "$(_get_inet_address)" ] && opts="${opts} -D" foundmac="$(arping -w "${w}" ${opts} -f -I "${IFACE}" "${ip}" 2>/dev/null | \ - sed -n -e 'y/abcdef/ABCDEF/' -e 's/.*\[\([^]]*\)\].*/\1/p')" + sed -n -e 'y/abcdef/ABCDEF/' -e 's/[^[]*\[\([^]]*\)\].*/\1/p')" fi [ -z "${foundmac}" ] && return 1 |