RouterTech Firmware: extra command line tools (Firmware v)

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

See other commands below.

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.

6. RT_init_<n>
Here, "n" stands for a number (e.g., "RT_init_1"). This feature allows you to specify certain commands to be executed automatically when the router boots up, at a very early stage of the bootup process.
e.g.,
setenv RT_init_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.
or
setenv RT_init_1 "netshaper -s 192.168.1.3 524288"
This will set up the router to run the netshaper 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/

others (all over the place)And a whole host of others ...