mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 04:24:29 +02:00
hotspot-to-wpa-cleanup: use :onerror for outer block
This commit is contained in:
parent
d609da0041
commit
143b8a8ddc
3 changed files with 9 additions and 9 deletions
|
@ -16,7 +16,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 EitherOr;
|
:global EitherOr;
|
||||||
|
@ -75,6 +75,6 @@
|
||||||
/ip/dhcp-server/lease/remove $Lease;
|
/ip/dhcp-server/lease/remove $Lease;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} on-error={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ];
|
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,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 EitherOr;
|
:global EitherOr;
|
||||||
|
@ -82,6 +82,6 @@
|
||||||
/ip/dhcp-server/lease/remove $Lease;
|
/ip/dhcp-server/lease/remove $Lease;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} on-error={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ];
|
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,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 EitherOr;
|
:global EitherOr;
|
||||||
|
@ -75,6 +75,6 @@
|
||||||
/ip/dhcp-server/lease/remove $Lease;
|
/ip/dhcp-server/lease/remove $Lease;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} 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