RouterTech Firmware: extra command line tools (Firmware v2.96)

These commands are mostly in /usr/local/bin/. See features.html for more details.


The following are RouterTech firmware helper programs, and should NOT be run directly: rt_dc; rt_word2; mtd3_app; rebt

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 (and autoexec1.sh up to autoexec7.sh)
e.g.,
setenv autoexec.sh "wget http://fpp.com/bar.sh -P /var && chmod a+x /var/bar.sh && /var/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

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. RT_cmd_<x>
Here, "x" stands for a number or other unique identifier (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_<x>
Here, "x" stands for a number or other unique identifier (e.g., "RT_init_sys1"). 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_rshaper "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_shaper2 "netshaper -d 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 ...