Site Tools


admin-scripts

This is an old revision of the document!


Scripts

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


  • INIT: This script is run at boot time only before any connection is ever established.
  • Shutdown: This script is called as part of the Shutdown (alone) or Shutdown as part of a reboot call.
  • Firewall: Often FreshTomato calls a firewall restart, this happens when configuration is changes or certain internal events trigger this.
  • 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 any secondary WAN is called. Note you can dynamically write your scripts using $1 which is populated with the WAN of reference.
admin-scripts.1641545834.txt.gz · Last modified: 2022/01/07 08:57 by rs232