mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-08-01 06:01:35 +00:00
Compare commits
2 commits
2a5da14d80
...
03eef94c06
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03eef94c06 | ||
|
|
6ec01a8695 |
1 changed files with 8 additions and 0 deletions
|
|
@ -1336,6 +1336,14 @@
|
||||||
:local ScriptInfo [ $ParseKeyValueStore ($ScriptVal->"comment") ];
|
:local ScriptInfo [ $ParseKeyValueStore ($ScriptVal->"comment") ];
|
||||||
:local SourceNew;
|
:local SourceNew;
|
||||||
|
|
||||||
|
:foreach Scheduler in=[ /system/scheduler/find where on-event~("\\b" . $ScriptVal->"name" . "\\b") ] do={
|
||||||
|
:local SchedulerVal [ /system/scheduler/get $Scheduler ];
|
||||||
|
:if ($ScriptVal->"policy" != $SchedulerVal->"policy") do={
|
||||||
|
$LogPrint warning $0 ("Policies differ for script '" . $ScriptVal->"name" . \
|
||||||
|
"' and its scheduler '" . $SchedulerVal->"name" . "'!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
:do {
|
:do {
|
||||||
:if ($ScriptInfo->"ignore" = true) do={
|
:if ($ScriptInfo->"ignore" = true) do={
|
||||||
$LogPrint debug $0 ("Ignoring script '" . $ScriptVal->"name" . "', as requested.");
|
$LogPrint debug $0 ("Ignoring script '" . $ScriptVal->"name" . "', as requested.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue