how to run a bash script before startup
I need to run a bash script at the startup before anything else is up. This file exports some important global variables for some other scripts that are supposed to come up after.
I tried rc.local but it doesn't work...after the command line is up, I can't execute the scripts because the configurations are not properly exported...
I don't want to use /etc/profile as it waits for bash to come up first before it can export the configs and I can't wait that long...