mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-15 07:22:22 +02:00
ppp-on-up: give hint about mis-usage
This commit is contained in:
parent
894ee65675
commit
15beb92347
1 changed files with 6 additions and 1 deletions
|
@ -4,8 +4,13 @@
|
||||||
#
|
#
|
||||||
# run scripts on ppp up
|
# run scripts on ppp up
|
||||||
|
|
||||||
# variable $interface is available in ppp on-up script
|
|
||||||
:local Interface $interface;
|
: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.";
|
||||||
|
}
|
||||||
|
|
||||||
:local IntName [ / interface get $Interface name ];
|
:local IntName [ / interface get $Interface name ];
|
||||||
:log info ("PPP interface " . $IntName . " is up.");
|
:log info ("PPP interface " . $IntName . " is up.");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue