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/07 09:07] – rs232 | admin-scripts [2022/01/11 06:28] – removed quotation marks-inappropriate hogwild | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Scripts ===== | ===== Scripts ===== | ||
- | The Scripts page allows you to define certain commands to be run at specific events. These events are predefined, each have 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: | ||
+ | |||
+ | * **INIT**: A script entered here is run at boot time, before any connections are established. | ||
+ | |||
+ | * **Shutdown**: | ||
+ | |||
+ | * **Firewall**: | ||
+ | |||
+ | * **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. Which WAN can be defined passing the $1 parameter within the script. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * **Word Wrap:** This option wraps text exceeding the line length to the next line to make it easier to read/edit. | ||
- | {{: | ||
- | * **INIT**: This script is run at boot time only before any connection is ever established.\\ | ||
- | * **Shutdown**: | ||
- | * **Firewall**: | ||
- | * **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 a WAN is reconnected. Note you can dynamically write your own scripts using $1 to refer to the the MultiWAN interface to affect.\\ | ||
- | {{: | ||
- | **Word Wrap**: This option wraps text exceeding the line length to simplify editing/ |