diff options
author | Christian Hesse <mail@eworm.de> | 2020-02-24 20:07:21 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-02-26 11:51:49 +0100 |
commit | f1ab717ae5f1daf9e5296bc5308ce7b0708171b8 (patch) | |
tree | a5e2f39da71b0a1e9b1f0b95f94c6e844ad5ce5c /ppp-on-up | |
parent | 1d93bcbc0ddb731e5c484ab5e6b14c9017b9abe7 (diff) |
ppp-on-up: use $LogAndError
Diffstat (limited to 'ppp-on-up')
-rw-r--r-- | ppp-on-up | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 ]; |