aboutsummaryrefslogtreecommitdiffstats
path: root/ppp-on-up.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-08 17:32:12 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 20:37:57 +0100
commitba2df80f073caf6b426def177b217d1b37954d7f (patch)
tree5dadd74e56ded840e62e82127a9315c8769bfd83 /ppp-on-up.rsc
parent19802c0b6977f9467fada4ace3cab017dd98964b (diff)
parent242ecef012f5208b6fa088a1222d0d5477e5b2ed (diff)
Merge branch 'LogPrint' into next
Diffstat (limited to 'ppp-on-up.rsc')
-rw-r--r--ppp-on-up.rsc11
1 files changed, 6 insertions, 5 deletions
diff --git a/ppp-on-up.rsc b/ppp-on-up.rsc
index 0cc2405..61766c0 100644
--- a/ppp-on-up.rsc
+++ b/ppp-on-up.rsc
@@ -14,26 +14,27 @@
:do {
:local ScriptName [ :jobname ];
- :global LogPrintExit2;
+ :global LogPrint;
:local Interface $interface;
:if ([ :typeof $Interface ] = "nothing") do={
- $LogPrintExit2 error $ScriptName ("This script is supposed to run from ppp on-up script hook.") true;
+ $LogPrint error $ScriptName ("This script is supposed to run from ppp on-up script hook.");
+ :error false;
}
:local IntName [ /interface/get $Interface name ];
- $LogPrintExit2 info $ScriptName ("PPP interface " . $IntName . " is up.") false;
+ $LogPrint info $ScriptName ("PPP interface " . $IntName . " is up.");
/ipv6/dhcp-client/release [ find where interface=$IntName !disabled ];
:foreach Script in=[ /system/script/find where source~("\n# provides: ppp-on-up\n") ] do={
:local ScriptName [ /system/script/get $Script name ];
:do {
- $LogPrintExit2 debug $ScriptName ("Running script: " . $ScriptName) false;
+ $LogPrint debug $ScriptName ("Running script: " . $ScriptName);
/system/script/run $Script;
} on-error={
- $LogPrintExit2 warning $ScriptName ("Running script '" . $ScriptName . "' failed!") false;
+ $LogPrint warning $ScriptName ("Running script '" . $ScriptName . "' failed!");
}
}
} on-error={ }