r="${config[@]}"
config=( ${r//brd +/} )
config=( "${config[@]//brd/broadcast}" )
config=( "${config[@]//peer/pointtopoint}" )
config=( "${config[@]//peer/pointopoint}" )
fi
# Ensure that the interface is up so we can add IPv6 addresses
;;
esac
done
config=( "${config[@]//pointtopoint/peer}" )
config=( "${config[@]//pointopoint/peer}" )
# Always scope lo addresses as host unless specified otherwise
[[ ${iface} == "lo" && " ${config[@]} " != *" scope "* ]] \