03-22-2019 02:58 PM
I need to create a system environment variable at startup (i.e. variable is created even if no one logs in). I tried to add,
FOO=bar
to /etc/environment. However, after rebooting this did not work.
Does anyone know how to do this with NI Linux Real-Time?
03-26-2019 11:46 AM
While I was able to add 'FOO=bar' to /etc/environment and get it to persist after a reboot, I was unable to identify it as a system environment variable.
Instead, I added 'export FOO=bar' to the end of /etc/profile. When I rebooted, this change persisted, and the variable was identified. This should apply system-wide.