From c409dd0570ec66946446f4c9a33e29589174afc4 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 28 May 2008 13:38:58 +0000 Subject: Some ifconfig's output weird inet6 loopback addresses --- net/ifconfig.sh.Linux.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'net') diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in index 6b613640..36cb9c27 100644 --- a/net/ifconfig.sh.Linux.in +++ b/net/ifconfig.sh.Linux.in @@ -235,7 +235,11 @@ _delete_addresses() local addr= for addr in $(LC_ALL=C ifconfig "${IFACE}" | \ sed -n -e 's/^.*\(inet6 addr:\|inet6\) \([^ ]*\) .*\(Scope:[^L]\|scopeid [^<]*<[^l]\).*/\2/p'); do - [ "${addr}" = "::1/128" -a "${IFACE}" = "lo" ] && continue + if [ "${IFACE}" = "lo" ]; then + case "${addr}" in + "::1/128"|"/128") continue;; + esac + fi einfo "${addr}" ifconfig "${IFACE}" inet6 del "${addr}" done -- cgit v1.2.3