myDSL Extensions (deprecated) :: A .CI extension question



Is there any way to get a .ci/.uci to mount someplace other than /opt?

I'm working on converting the nxclient.dsl I hacked up to a .ci extension, but from the looks of it the damned thing is hardcoded to run only from the /usr/NX directory.

As everything in the client is otherwise self-contained, I figured it would be an excellent candidate for the compressed filesystem styled extensions. If .uci/.ci could mount itself to /usr/NX, I think we'd be in business (and saving loads of aging hardware RAM).

I'm not so good as this kinda stuff myself, but I'm pretty sure it's a requirement of a .ci to run under opt, or it appears that way to me from http://www.damnsmalllinux.org/talk/node/85.  If it's hard coded that way you may have to open up the source code and go a-changin' things.
Such a restriction usually means that you should turn it into a *.dsl extension instead of a *.uci extension.

However, you could get creative and make it into a *.uci extension and then build a small sidekick *.dsl extension that would be used to create symlinks back to the *.uci files that are in /opt

ie:

/usr/NX  -->  /opt/NX

You could probably mount it to /usr/NX manually rather than through mydsl-load, but I'd say cbagger's suggestion would be simplest.
If it is truly a self-contained app, then recompiling it using the option
./configure --prefix=/opt/NX
should be an easy task, if the program is easily compilable.
Then creatng a .uci from it should be no problem.

73
ke4nt

Next Page...
original here.