I have TC booting from a compact flash drive. I also have an application on the compact flash (/mnt/hda2/tce/options) called xastir. Xastir displays maps and locations of items. My maps are on the compact flash as well in /mnt/hda2/tce/maps. However, when it is loaded, xastir expects to find maps in /usr/local/share/xastir/maps.
At the command line, I can create a symbolic link like this:
ln -s /mnt/hda2/tce/maps /usr/local/share/xastir/maps/cfmaps
which works fine, but I need that link before xastir starts otherwise the app's startup configuration doesn't find the maps and removes them from its map list.
I have tried adding the symbolic link to the /home/tc/.X.d/xastir file ahead of starting xastir, even with a sudo su ahead of it, but the link isn't created. What is the correct way to create this link before starting the program?