mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
ppp-on-up: add error handling
This commit is contained in:
parent
aad2e062e5
commit
037d287e5b
1 changed files with 6 additions and 2 deletions
|
@ -25,6 +25,10 @@
|
|||
|
||||
:foreach Script in=[ / system script find where source~("\n# provides: ppp-on-up\n") ] do={
|
||||
:local ScriptName [ / system script get $Script name ];
|
||||
:do {
|
||||
:log debug ("Running script from ppp-on-up: " . $ScriptName);
|
||||
/ system script run $Script;
|
||||
} on-error={
|
||||
:log warning ("Running script '" . $ScriptName . "' from ppp-on-up failed!");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue