On the Smart 7688, I have created a .profile (at /root/.profile) file with the following content:
My intention being that the node program that automatically runs as an init script uses this DEVICEID environment variable. The trouble I face is that when I manually launch the service, I'm able to read the DEVICEID however when the init script launches the service DEVICEID stays undefined.
I'm guessing this has to be the order in which the init script and the .profile are loaded but I can't be sure. Please help with a work-around for this. Thanks in advance