aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-28 13:38:58 +0000
committerRoy Marples <roy@marples.name>2008-05-28 13:38:58 +0000
commitc409dd0570ec66946446f4c9a33e29589174afc4 (patch)
tree76ee9a91a36bb7a7c0f96b8cd5c5443f679cc34e /net
parentaaaa0b50d88d0fd3d2d971b76076e79ccef46b97 (diff)
Some ifconfig's output weird inet6 loopback addresses
Diffstat (limited to 'net')
-rw-r--r--net/ifconfig.sh.Linux.in6
1 files changed, 5 insertions, 1 deletions
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