Set environment variable

Hello. I want to run script at system boot which setup environment variable. This variable should be available for each process. How to achieve this?
I added script in uci-defaults with export command but variable doesn't available in my console session.

add your environment varables to $HOME/.profile (create it if this file does not exist) ... $HOME is usually root in OpenWrt.