diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ifconfig.sh.BSD.in | 5 |
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;; |