Good morning.
After following a few tutorials on how to add scripts to the JFFS partition, i must admit i'm pretty much lost.
Basically, i want to tweak the buffer size of my Router and check the impact on streaming/gaming/whatever.
Here's what i've learned so far:
-Use putty to access the router via Telnet/SSH -ok
-Access the /jffs/Scripts "folder" -ok
-Use vi (text editor) to create the scripts in the /jffs/scripts folder
Nope, just nope. -ko
And like any Linux script, they need to start with a shebang:
#!/bin/sh
Ok i got that. I'm supposed to start the script with this line, now am I.
Now lets suppose i put up something like this:
#!/bin/sh
ifconfig eth0 txqueuelen 2
ifconfig eth1 txqueuelen 2
Don't forget to set any script you create as being executable:
chmod a+rx /jffs/scripts/*
Yeah, i've heard that. But where ? when ? is it a command ? a line i should insert at the start of my script ?
How do i create the correct "file"
How do i run it ?
How can i check my script has been correctly executed ?
Is there a Telnet command to check a list of scripts stored in /jffs/Scripts "folder" ?
I cannot seem to save this script under VI like i'd do it with a regular text editor (Notepad++ comes to mind) and to be honest, i'd rather not use this program which reminds me of my stone-age Cobol days i'd rather forget about...
I just want to run a simple script, check the results, and revert the process if those results aren't to my liking. DD-WRT and Tomato allow me to run scripts without much hassle but the performance isnt up to par with Merlin.
After following a few tutorials on how to add scripts to the JFFS partition, i must admit i'm pretty much lost.
Basically, i want to tweak the buffer size of my Router and check the impact on streaming/gaming/whatever.
Here's what i've learned so far:
-Use putty to access the router via Telnet/SSH -ok
-Access the /jffs/Scripts "folder" -ok
-Use vi (text editor) to create the scripts in the /jffs/scripts folder
Nope, just nope. -ko
And like any Linux script, they need to start with a shebang:
#!/bin/sh
Ok i got that. I'm supposed to start the script with this line, now am I.
Now lets suppose i put up something like this:
#!/bin/sh
ifconfig eth0 txqueuelen 2
ifconfig eth1 txqueuelen 2
Don't forget to set any script you create as being executable:
chmod a+rx /jffs/scripts/*
Yeah, i've heard that. But where ? when ? is it a command ? a line i should insert at the start of my script ?
How do i create the correct "file"
How do i run it ?
How can i check my script has been correctly executed ?
Is there a Telnet command to check a list of scripts stored in /jffs/Scripts "folder" ?
I cannot seem to save this script under VI like i'd do it with a regular text editor (Notepad++ comes to mind) and to be honest, i'd rather not use this program which reminds me of my stone-age Cobol days i'd rather forget about...
I just want to run a simple script, check the results, and revert the process if those results aren't to my liking. DD-WRT and Tomato allow me to run scripts without much hassle but the performance isnt up to par with Merlin.