mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-21 08:29:33 +00:00
global-functions: simplify scheduler fix
This commit is contained in:
parent
74be3eae5d
commit
16976b1d78
1 changed files with 1 additions and 3 deletions
|
|
@ -1926,9 +1926,7 @@
|
||||||
:if ([ :len [ find where name="global-scripts" ] ] = 0) do={
|
:if ([ :len [ find where name="global-scripts" ] ] = 0) do={
|
||||||
add name="global-scripts" start-time=startup;
|
add name="global-scripts" start-time=startup;
|
||||||
}
|
}
|
||||||
:if ([ get "global-scripts" on-event ] != $OnEvent) do={
|
set on-event=$OnEvent [ find where name="global-scripts" on-event!=$OnEvent ];
|
||||||
set "global-scripts" on-event=$OnEvent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Log success
|
# Log success
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue