This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| admin-scripts [2022/01/11 04:02] – formatting-clarity hogwild | admin-scripts [2024/10/24 00:44] (current) – hogwild | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Scripts ===== | + | ====== Scripts |
| - | The Scripts page allows | + | Here, you can define certain commands to be run upon specific events. These events are predefined. Each event condition has its own tab. \\ |
| - | {{: | + | \\ \\ **INIT: |
| - | * **INIT**: A script entered here is run at boot time, before any connections are established. | + | \\ |
| - | | + | **Halt:** |
| - | * **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: |
| - | | + | **Firewall:** |
| - | | + | \\ |
| + | |||
| + | **WAN Up (Main):** | ||
| \\ | \\ | ||
| - | {{:pasted: | + | **MultiWan Up:** a script here is run every time a WAN is reconnected. Specifying which WAN triggers the script is done by passing the "// |
| - | * **Word Wrap: | + | \\ |
| + | |||
| + | {{: | ||
| + | |||
| + | **Word Wrap:** wraps text exceeding the line length to the next line, to make it easier to read. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | \\ | ||