Site Tools


admin-scripts

This is an old revision of the document!


Scripts

The Scripts page allows you to define certain commands to be run at specific events. These events are predefined, each have its own tab:


  • INIT: This script is run at boot time only before any connection is ever established.
  • Shutdown: Commands defined here are called when the device goes through a Shutdown or Reboot process.
  • Firewall: Often FreshTomato calls the firewall restart, this happens for a number of reasons but the most common are a configuration changes or certain internal events (e.g. change of WAN IP).
  • WAN Up (Main): This is called every time the WAN connects., in a MultiWAN scenario this is the primary WAN.
  • MultiWan Up: This final field run a script every time a WAN is reconnected. Note you can dynamically write your own scripts using $1 to refer to the the MultiWAN interface to affect.


Word Wrap: This option wraps text exceeding the line length to simplify editing/readability.

admin-scripts.1641546432.txt.gz · Last modified: 2022/01/07 09:07 by rs232