mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-06 22:19:35 +00:00
ospf-to-leds: use :onerror for outer block
This commit is contained in:
parent
f7baf900ca
commit
1a078b94a8
1 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||||
|
|
||||||
:local ExitOK false;
|
:local ExitOK false;
|
||||||
:do {
|
:onerror Err {
|
||||||
:local ScriptName [ :jobname ];
|
:local ScriptName [ :jobname ];
|
||||||
|
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
|
|
@ -44,6 +44,6 @@
|
||||||
/system/leds/set type=off [ find where leds=$LED ];
|
/system/leds/set type=off [ find where leds=$LED ];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} on-error={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ];
|
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue