From f1ab717ae5f1daf9e5296bc5308ce7b0708171b8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 24 Feb 2020 20:07:21 +0100 Subject: ppp-on-up: use $LogAndError --- ppp-on-up | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ppp-on-up') diff --git a/ppp-on-up b/ppp-on-up index b8f8fcb..6c72a94 100644 --- a/ppp-on-up +++ b/ppp-on-up @@ -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 ]; -- cgit v1.2.3-54-g00ecf