From 1e3442f95d2acd290e417f9b26e908c98c4a2c36 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 23 Apr 2008 13:17:13 +0000 Subject: Work with aliases on NetBSD. --- net/ifconfig.sh.BSD.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'net') diff --git a/net/ifconfig.sh.BSD.in b/net/ifconfig.sh.BSD.in index 6f96177..3c76b1d 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;; -- cgit v1.2.3