aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ];