Well, if you're using postinst, you will know the path of your files, so choose one (file) and look for it on all of the storage mediums it could be installed on (which isn't many on the Sharp ROMs).
That is a good idea! Have to think about. find / -name "myfile" -print would even traverse all the /mnt points... And would need just some seconds on a slow medium which ould by ok.
Unfortunately, installation is going to PKG_ROOT=/home/tmp/ipkg/inst first in internal flash until everything is ok, including the postinst scripts are completed.
So it seems not to work as intended. What I could do is to have two installers - one to select the destination and the second one to finally install
What are you planning to do with the scripts? Symbolic links you say - what for?
I am installing a package that uses internally some symbolic links (dynamic libraries) - that I don't want to change to hard links or create copies of the files.
And the other thing is that I need some links from the root file system into the installed package.
And the last thing is that I have some suid root executables - which not all file systems can handle.
-- hns