aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-06-23 10:26:10 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-06-23 10:26:49 +0200
commit037d287e5b250ec794f26cb0bef3fd214a35aef2 (patch)
treec052e01352903d69d02c895cd937133d942fa7d6
parentaad2e062e5005a1acdc689a4042d8c80d025b667 (diff)
ppp-on-up: add error handling
-rw-r--r--ppp-on-up8
1 files changed, 6 insertions, 2 deletions
diff --git a/ppp-on-up b/ppp-on-up
index e7b2971..017edc3 100644
--- a/ppp-on-up
+++ b/ppp-on-up
@@ -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 ];
- :log debug ("Running script from ppp-on-up: " . $ScriptName);
- / system script run $Script;
+ :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!");
+ }
}