Work with aliases on NetBSD.
This commit is contained in:
parent
2bda1871a1
commit
1e3442f95d
@ -151,9 +151,12 @@ _delete_addresses()
|
|||||||
{
|
{
|
||||||
einfo "Removing addresses"
|
einfo "Removing addresses"
|
||||||
eindent
|
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
|
case "${inet}" in
|
||||||
inet|inet6)
|
inet|inet6)
|
||||||
|
if [ "${address}" = "alias" ]; then
|
||||||
|
address="${ali}"
|
||||||
|
fi
|
||||||
case "${address}" in
|
case "${address}" in
|
||||||
*"%${IFACE}"|::1) continue;;
|
*"%${IFACE}"|::1) continue;;
|
||||||
127.0.0.1) [ "${IFACE}" = "lo0" ] && continue;;
|
127.0.0.1) [ "${IFACE}" = "lo0" ] && continue;;
|
||||||
|
Loading…
Reference in New Issue
Block a user