diff options
author | Christian Hesse <mail@eworm.de> | 2019-07-05 23:21:46 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-05 23:21:46 +0200 |
commit | 15beb9234793fd01752d060ad01cc363c9a744be (patch) | |
tree | 040ff2510a26e08f59d600bc92ec6d818307a634 /ppp-on-up | |
parent | 894ee65675ee846bd0c7d98e75b261cf5d6b35cc (diff) |
ppp-on-up: give hint about mis-usage
Diffstat (limited to 'ppp-on-up')
-rw-r--r-- | ppp-on-up | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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."); |