Tiny Core Extensions > TCE Talk

what about custom onDemand rc files?

(1/2) > >>

FxIII:
I installed my Dropbear on demand and, as you know, is it possible to bring it up simply typing dropbear. But after a $ dropbear always come an $ sudo /etc/init.d/dropbear start.

I should change the script in my persistent tce/ondemand folder but you know this is not the better place to put the custom initialization.

What about to let each script that is loaded on demand to look for a directory in /opt so an user can write its custom command to execute after an extension is loaded on demand?

What about /opt/onDemanded/%extensionName%.rc ? If the file exists and is executable it is executed by the onDemand loading script; nothing happens otherwise.

Let me know what you think about it!
--Fabio

curaga:

--- Quote ---I should change the script in my persistent tce/ondemand folder but you know this is not the better place to put the custom initialization.
--- End quote ---

That's exactly the place ;)

In fact the earlier manual wizard for creating ondemand items used to ask which binary to run, if it couldn't determine one automatically from a menu item.

gerald_clark:
I see several potential problems.
1. Some extensions provide more than one service. EX: nfsserver and nfsclient.
    The user may not wish to run them all.
2. Most servers require cusomized config files that will not be installed the first time the service is loaded.
    These config files also need to be saved.
3. The structure of an extension will need to be changed to account for the above requirements.

FxIII:
@gerald_clark
1. the user can write a script that brings up one of the service or both or ask the user or not write the rc file at all if is not the case (it should be an optional script and not just for setup )
2. in the script one can update the /opt/.filetool.lst to take this into account (i'm not sure i understood your point here)
3. cant the change be done when building the extension by using the relative /tce/ondemand/ script in an automatic way? (I didnt see yet how one  should build a new extension)

@curaga
arent those script generated somewhere? I mean: what appends if i remove an extension from the onDemand list? are my change to that file lost?

gerald_clark:
Of course the user can write scripts.
I put mine in ~/.local/bin
When I run ssh, and it is not found, it loads dropbear and passes the original options to ssh.

I thought you wanted automatic configuration.

Navigation

[0] Message Index

[#] Next page

Go to full version