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
admin-scripts [2022/01/11 06:28] – removed quotation marks-inappropriate hogwildadmin-scripts [2024/10/24 00:44] (current) hogwild
Line 1: Line 1:
-===== Scripts =====+====== Scripts ======
  
-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.  \\   \\+Here, you can 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:**  a script entered here is run at boot time, before any connections are established.
  
-  * **INIT**: A script entered here is run at boot time, before any connections are established.+ \\
  
-  * **Shutdown**: Commands defined here are called when the device goes through the Shutdown or Reboot process.+**Halt:**  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).+{{:pasted:20220107-085048.png?729}}  \\   \\
  
-  * **WAN Up (Main)**: A script entered here is called every time the primary WAN (re)connects.+**Firewall:**  often, FreshTomato calls the firewall to restart. It happens after configuration changes or some internal events (such as a change of WAN IP).
  
-  * **MultiWan Up**: A script in this field is run every time WAN is reconnected. Which WAN can be defined passing the $1 parameter within the script.+ \\ 
 + 
 +**WAN Up (Main):**  script entered here is called every time the primary WAN (re)connects.
  
  \\  \\
  
-{{:pasted:20220107-090632.png}}  \\+**MultiWan Up:**  a script here is run every time a WAN is reconnected. Specifying which WAN triggers the script is done by passing the "//$1//" parameter in the script.
  
-  * **Word Wrap:** This option wraps text exceeding the line length to the next line to make it easier to read/edit.+ \\ 
 + 
 +{{:pasted:20220107-090632.png}}  \\  \\ 
 + 
 +**Word Wrap:** wraps text exceeding the line length to the next lineto make it easier to read. 
 + 
 + \\ 
 + 
 + \\ 
 + 
 + \\
  
  
admin-scripts.1641882522.txt.gz · Last modified: 2022/01/11 06:28 by hogwild