mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-config: RouterOS v7 path syntax
This commit is contained in:
@@ -128,10 +128,10 @@
|
|||||||
|
|
||||||
# Run different commands with multiple mode-button presses.
|
# Run different commands with multiple mode-button presses.
|
||||||
:global ModeButton {
|
:global ModeButton {
|
||||||
1="/ system script run leds-toggle-mode;";
|
1="/system/script/run leds-toggle-mode;";
|
||||||
2=":global SendNotification; :global Identity; \$SendNotification (\"Hello...\") (\"Hello world, \" . \$Identity . \" calling!\");";
|
2=":global SendNotification; :global Identity; \$SendNotification (\"Hello...\") (\"Hello world, \" . \$Identity . \" calling!\");";
|
||||||
3="/ system shutdown;";
|
3="/system/shutdown;";
|
||||||
4="/ system reboot;";
|
4="/system/reboot;";
|
||||||
5=":global BridgePortVlan; \$BridgePortVlan alt;";
|
5=":global BridgePortVlan; \$BridgePortVlan alt;";
|
||||||
# add more here...
|
# add more here...
|
||||||
};
|
};
|
||||||
@@ -141,8 +141,8 @@
|
|||||||
# Run commands on SMS action.
|
# Run commands on SMS action.
|
||||||
:global SmsAction {
|
:global SmsAction {
|
||||||
bridge-port-vlan-alt=":global BridgePortVlan; \$BridgePortVlan alt;";
|
bridge-port-vlan-alt=":global BridgePortVlan; \$BridgePortVlan alt;";
|
||||||
reboot="/ system reboot;";
|
reboot="/system/reboot;";
|
||||||
shutdown="/ system shutdown;";
|
shutdown="/system/shutdown;";
|
||||||
# add more here...
|
# add more here...
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@
|
|||||||
# load custom settings from overlay
|
# load custom settings from overlay
|
||||||
# Warning: Do *NOT* copy this code to overlay!
|
# Warning: Do *NOT* copy this code to overlay!
|
||||||
:do {
|
:do {
|
||||||
/ system script run global-config-overlay;
|
/system/script/run global-config-overlay;
|
||||||
} on-error={
|
} on-error={
|
||||||
:log error ("Loading configuration from overlay failed!");
|
:log error ("Loading configuration from overlay failed!");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user