aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-23 13:17:13 +0000
committerRoy Marples <roy@marples.name>2008-04-23 13:17:13 +0000
commit1e3442f95d2acd290e417f9b26e908c98c4a2c36 (patch)
tree22e212030aeb1758f2bca4670d7100f8c8bdbc62 /net
parent2bda1871a19faf6c7d05b2f925a82f2eb0f323b0 (diff)
Work with aliases on NetBSD.
Diffstat (limited to 'net')
-rw-r--r--net/ifconfig.sh.BSD.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ifconfig.sh.BSD.in b/net/ifconfig.sh.BSD.in
index 6f961776..3c76b1d7 100644
--- a/net/ifconfig.sh.BSD.in
+++ b/net/ifconfig.sh.BSD.in
@@ -151,9 +151,12 @@ _delete_addresses()
{
einfo "Removing addresses"
eindent
- LC_ALL=C ifconfig "${IFACE}" | while read inet address rest; do
+ LC_ALL=C ifconfig "${IFACE}" | while read inet address ali rest; do
case "${inet}" in
inet|inet6)
+ if [ "${address}" = "alias" ]; then
+ address="${ali}"
+ fi
case "${address}" in
*"%${IFACE}"|::1) continue;;
127.0.0.1) [ "${IFACE}" = "lo0" ] && continue;;