Site Tools


admin-scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
admin-scripts [2022/01/07 08:57] rs232admin-scripts [2023/06/10 01:20] – -change title to Heading level 1 hogwild
Line 1: Line 1:
-===== Scripts =====+====== 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:\\+The Scripts page allows you to define certain commands to be run upon specific events. These events are predefined. Each event condition has its own tab.  \\
  
-{{:pasted:20220107-085048.png}}\\ + \\ \\ **INIT:**  script entered here is run at boot timebefore any connections are established.
-  * **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.\\+
  
 +**Halt:**  Commands defined here are called when the device goes through the Shutdown or Reboot process. \\ \\
 +
 +{{:pasted:20220107-085048.png?729}}  \\   \\
 +
 +**Firewall:**  Often, FreshTomato calls the firewall to restart. This happens after configuration changes or some internal events (such as a change of WAN IP).
 +
 +**WAN Up (Main):**  A script entered here is called every time the primary WAN (re)connects.
 +
 +**MultiWan Up:**  A script in this field is run every time a WAN is reconnected. Specifying which WAN will trigger the script is done by passing the "//$1//" parameter in the script.
 +
 + \\
 +
 +{{:pasted:20220107-090632.png}}  \\  \\
 +
 +**Word Wrap:** This option wraps text exceeding the line length to the next line, to make it easier to read/edit.
 +
 + \\
 +
 + \\
  
  
admin-scripts.txt · Last modified: 2023/08/05 19:19 by hogwild