diff options
author | Christian Hesse <mail@eworm.de> | 2021-06-23 10:26:10 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-06-23 10:26:49 +0200 |
commit | 037d287e5b250ec794f26cb0bef3fd214a35aef2 (patch) | |
tree | c052e01352903d69d02c895cd937133d942fa7d6 /ppp-on-up | |
parent | aad2e062e5005a1acdc689a4042d8c80d025b667 (diff) |
ppp-on-up: add error handling
Diffstat (limited to 'ppp-on-up')
-rw-r--r-- | ppp-on-up | 8 |
1 files changed, 6 insertions, 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 ]; - :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!"); + } } |