Commit 15beb923 authored by Christian Hesse's avatar Christian Hesse

ppp-on-up: give hint about mis-usage

parent 894ee656
......@@ -4,8 +4,13 @@
#
# run scripts on ppp up
# variable $interface is available in ppp on-up script
: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 ];
:log info ("PPP interface " . $IntName . " is up.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment