Maby it can be done in /opt/etc/profile as you say, but it does work as well placing it in :
/usr/local/root/.profile
(where root is the name of my admin user. Default ASUS name is admin!!)
If you create this file containing :
export TERMINFO="/opt/lib/terminfo"
export TERM="linux"
export LD_LIBRARY_PATH=/opt/lib
The Midnight Commander will work without problems whenever you log on.
You do need however to create an entry like this :
/usr/local/root/.profile
In your /usr/local/sbin/.files
and then do a :
flashfs save
flashfs commit
In order to save the new made .profile script in flash.
Have fun :-)
macsat