aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-02-24 20:07:21 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-02-26 11:51:49 +0100
commitf1ab717ae5f1daf9e5296bc5308ce7b0708171b8 (patch)
treea5e2f39da71b0a1e9b1f0b95f94c6e844ad5ce5c
parent1d93bcbc0ddb731e5c484ab5e6b14c9017b9abe7 (diff)
ppp-on-up: use $LogAndError
-rw-r--r--ppp-on-up5
1 files changed, 3 insertions, 2 deletions
diff --git a/ppp-on-up b/ppp-on-up
index b8f8fcb..6c72a94 100644
--- a/ppp-on-up
+++ b/ppp-on-up
@@ -4,11 +4,12 @@
#
# run scripts on ppp up
+:global LogAndError;
+
:local Interface $interface;
:if ([ :typeof $Interface ] = "nothing") do={
- :log error "This script is supposed to run from ppp on-up script hook.";
- :error "Error: See log for details.";
+ $LogAndError "This script is supposed to run from ppp on-up script hook.";
}
:local IntName [ / interface get $Interface name ];