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