mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-config: add more examples for mode button and sms-action
This commit is contained in:
@@ -66,9 +66,10 @@
|
|||||||
# Run different commands with multiple mode-button presses.
|
# Run different commands with multiple mode-button presses.
|
||||||
:global "mode-button" {
|
:global "mode-button" {
|
||||||
1="/ system script run leds-toggle-mode;";
|
1="/ system script run leds-toggle-mode;";
|
||||||
2="/ system shutdown;";
|
2=":global SendNotification; :global identity; \$SendNotification \"Hello...\" (\"Hello world, \" . \$identity . \" calling!\");";
|
||||||
3="/ system reboot;";
|
3="/ system shutdown;";
|
||||||
4="/ system script run bridge-port-toggle;";
|
4="/ system reboot;";
|
||||||
|
5="/ system script run bridge-port-toggle;";
|
||||||
# add more here...
|
# add more here...
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -76,6 +77,7 @@
|
|||||||
:global "sms-action" {
|
:global "sms-action" {
|
||||||
shutdown="/ system shutdown;";
|
shutdown="/ system shutdown;";
|
||||||
reboot="/ system reboot;";
|
reboot="/ system reboot;";
|
||||||
|
bridge-port-toggle="/ system script run bridge-port-toggle;";
|
||||||
# add more here...
|
# add more here...
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user