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 upon specific events. These events are predefined. Each even has its own tab.


  • INIT: A script entered here is run at boot time, before any connections are ever established.
  • Shutdown: Commands defined here are called when the device goes through the Shutdown or Reboot process.
  • Firewall: Often FreshTomato calls the firewall to restart, this happens due to configuration changes or certain internal events (such as a change of WAN IP).
  • WAN Up (Main): A script entered here is called every time the WAN (re)connects. In a MultiWAN configuration, it's called when the primary WAN connects.
  • MultiWan Up: A script in this field is run every time a WAN is reconnected. 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.1641872607.txt.gz · Last modified: 2022/01/11 03:43 by hogwild