Within /etc/rc I run some init routines that also set/expand environment variables. But after the startup is complete all the environment variables are back to their default values.

AFAIK, the (serial) terminal runs as a new process after the init rc is done. so all environment settings are lost.

You can echo all environment settings you want to keep to a file (by

echo ENVVAR1=$ENVVAR1 > /etc/rcc
echo ENVVAR2=$ENVVAR2 >> /etc/rcc
...

and do
. /etc/rcc in the shell before you need the environment settings.

see http://www.nioswiki.com/Initialization_Script

-Michael
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to