Siti, blog e web hosting gratis Crea sito web
RouterTech Firmware: extra command line tools (Firmware v2.3)

All these commands are in /usr/local/bin/

See other commands below.

DSP & ATM:
# Facility to choose between different DSP/ATM modem driver versions
e.g., running: setenv dsp_ver dsp72A && setenv atm_ver dsp72A && reboot.sh
would select DSP and ATM v7.2, AnnexA.
# Instead if you want use dsp7.2A and atm6.2A (for example)
e.g., running: setenv dsp_ver dsp72A && setenv atm_ver dsp62A && reboot.sh
# For use with annexB line (6.2 annexB)
Running: setenv dsp_ver dsp62B && setenv atm_ver dsp62B && reboot.sh
# For restore default value (6.2 annexA) you can use environment variables, "erase"
Running: setenv dsp_ver erase && setenv atm_ver erase && reboot.sh
Choices are between dsp&atm 6.2A, 7.2A, and 6.2B.
# (i.e., DSP v6.2, AnnexB - note that the AnnexB selection is untested).
Note also that all these are case-sensitive. The default is dsp62A.

rshaperctl:
#New feature (rshaper.o loaded) and command: rshaperctl
e.g., rshaperctl 192.168.1.6 65536
(Limits the incoming bandwidth for the host to 65536 bytes per second=64Kbps)
NB: "64x1024=65536" - More info > RSHAPER - shape incoming traffic.

#Facility for executing commands on bootup - by "RT_cmd_x" entries in the environment ("x") stands for a number or some other distinguishing letter/number: e.g., setenv RT_cmd_1 "rshaperctl 192.168.1.6 65536" (will execute "rshaperctl 192.168.1.6 32768" during bootup)

NOTES:
Of the above shell scripts, the following can be executed on bootup by making entries for them in the bootloader environment ("/proc/ticfg/env" for the PSP boot loader, or "/proc/sys/dev/adam2/environment" for the Adam2 boot loader).

Examples:
1. autoexec.sh
e.g.,
setenv autoexec.sh "cd /var && wget http://fpp.com/bar.sh && chmod a+x ./bar.sh && ./bar.sh"
This will set up the router to fetch a script (bar.sh) from a website, set its executable flag, and then run it, everytime the router boots up.

2. checksync.sh
e.g.,
setenv checksync.sh "1"
This will set up the router to monitor the router sync status every hour

setenv checksync.sh "1 30"
This will set up the router to monitor the router sync status every 30 minutes of every hour

3. cron_la.sh
e.g.,
setenv cron_la.sh "2"
This will set up the router to log the line attenuation figures every 2 hours

4. memchk.sh
e.g.,
setenv memchk.sh "1"
This will set up the router to run the memory optimiser every hour

setenv memchk.sh "1 15"
This will set up the router to run the memory optimiser every 15 minutes of every hour

5. msmtp.sh
e.g.,
setenv msmtp.sh "--from=foo@foo.com --host=post.foo.com bar@bar.com < /var/msg.txt"
This will set up the router to email the contents of the file "msg.txt" to "bar@bar.com", using the smtp server "post.foo.com" (with sender as "foo@foo.com") everytime the router boots up.

6. RT_cmd_<n>
Here, "n" stands for a number (e.g., "RT_cmd_1"). This feature allows you to specify certain commands to be executed automatically when the router boots up.
e.g.,
setenv RT_cmd_1 "rshaperctl 192.168.1.3 524288"
This will set up the router to run the rshaperctl commmand on bootup, to throttle the bandwidth of the computer at 192.168.1.3 to no more than 512kbps.


Other RouterTech Firmware Commands

/bin/
/usr/bin/
/sbin/

usr/local/bin/