HI all I forgot to post this when we moved to the new site - sorry!
When I did the firmware I added a snippet of code in the samba script to look for and if there run a user script called samba.conf in the /dl directory.
An example script is available in the 2A downloads section here: http://www.psidoc.com/showthread.php...=2679#post2679
What this basically means is you can add run your own code at start up if you have a USB drive plugged in or when you plug a drive it it will launch the script.
If you look at the files in the download you'll see one called "samba.conf" and one called "doit"
Let's look at the samba.conf first.
The samba.conf contains the following:
What this does is tell the router to launch the script called "doit" in the /dl directory.# Configuration for inventel modules import
#
/dl/doit
Now let's look at the doit script.
What this one does is tell the router to launch the program utelnetd with the associated commands to make it work.# blaa
#
/dl/utelnetd -p 23 -l /bin/sh -d
proc >/dl/proc.txt
The proc >/dl/proc.txt command simply creates a blank text file called proc.txt in the /dl directory when run just it's a quick way to check the script was run by the router.
Now what if you want to launch something else?
Easy peasy.
Let's say you have a program in the /dl directory called "myprogram" as well as the utelnetd program.
simply edit the doit script to add your "myprogram" as below.
If you don't want to launch the utelned program simply put a # in front of it to tell the router to ignore that line.# blaa
#
/dl/utelnetd -p 23 -l /bin/sh -d
/dl/myprogram
proc >/dl/proc.txt
It really is as easy as that.
Psi


