1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

mode-button-event: add valid script to scheduler

This commit is contained in:
Christian Hesse
2019-08-29 09:29:09 +02:00
parent e479f3b01a
commit 03db080774

View File

@@ -12,7 +12,8 @@
:if ([ :len $Scheduler ] = 0) do={
:log info "Creating mode-button scheduler, counting presses...";
/ system scheduler add name=mode-button-scheduler on-event=mode-button-scheduler interval=3s;
/ system scheduler add name="mode-button-scheduler" \
on-event="/ system script run mode-button-scheduler;" interval=3s;
} else={
:log debug "Updating mode-button-scheduler...";
/ system scheduler set $Scheduler start-time=[ /system clock get time ];