This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
admin-scripts [2022/01/11 03:43] – grammar, clarity hogwild | admin-scripts [2023/06/08 23:34] – 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 even has 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 |
- | {{: | + | \\ \\ **INIT: |
- | | + | **Halt:** Commands defined here are called when the device goes through the Shutdown or Reboot process. \\ \\ |
- | * **Shutdown**: | + | |
- | * **Firewall**: | + | |
- | * **WAN Up (Main)**: A script entered here is called every time the WAN (re)connects. In a MultiWAN configuration, | + | |
- | * **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.\\ | + | |
- | {{: | + | {{: |
+ | |||
+ | **Firewall: | ||
+ | |||
+ | **WAN Up (Main): | ||
+ | |||
+ | **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 "// | ||
+ | |||
+ | \\ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | **Word Wrap:** This option wraps text exceeding the line length to the next line, to make it easier to read/edit. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | \\ | ||