1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

ppp-on-up: use $LogAndError

This commit is contained in:
Christian Hesse
2020-02-24 20:07:21 +01:00
parent 1d93bcbc0d
commit f1ab717ae5

View File

@@ -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 ];