Warning: Undefined array key "force_rev" in /home/fresoehv/wiki/lib/plugins/publish/action/start.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/fresoehv/wiki/lib/plugins/publish/action/start.php:37) in /home/fresoehv/wiki/inc/actions.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /home/fresoehv/wiki/lib/plugins/publish/action/start.php:37) in /home/fresoehv/wiki/lib/tpl/mindthedark/main.php on line 12
admin-scripts [FreshTomato Wiki]

Site Tools


admin-scripts

Scripts

Here, you can define certain commands to be run upon specific events. These events are predefined. Each event condition has its own tab.



INIT: a script entered here is run at boot time, before any connections are established.


Halt: commands defined here are called when the device goes through the Shutdown or Reboot process.



Firewall: often, FreshTomato calls the firewall to restart. It 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 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: wraps text exceeding the line length to the next line, to make it easier to read.




admin-scripts.txt · Last modified: 2024/10/24 00:44 by hogwild