mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-27 06:14:38 +02:00
ppp-on-up: use $LogAndError
This commit is contained in:
parent
1d93bcbc0d
commit
f1ab717ae5
1 changed files with 3 additions and 2 deletions
|
@ -4,11 +4,12 @@
|
||||||
#
|
#
|
||||||
# run scripts on ppp up
|
# run scripts on ppp up
|
||||||
|
|
||||||
|
:global LogAndError;
|
||||||
|
|
||||||
:local Interface $interface;
|
:local Interface $interface;
|
||||||
|
|
||||||
:if ([ :typeof $Interface ] = "nothing") do={
|
:if ([ :typeof $Interface ] = "nothing") do={
|
||||||
:log error "This script is supposed to run from ppp on-up script hook.";
|
$LogAndError "This script is supposed to run from ppp on-up script hook.";
|
||||||
:error "Error: See log for details.";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:local IntName [ / interface get $Interface name ];
|
:local IntName [ / interface get $Interface name ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue