From 0326a7222c9c4f2dcb588826d355c94e9454976f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 24 Feb 2020 20:09:51 +0100 Subject: lease-script: use $LogAndError --- lease-script | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lease-script') diff --git a/lease-script b/lease-script index 0b32d17..588c9ff 100644 --- a/lease-script +++ b/lease-script @@ -4,12 +4,13 @@ # # run scripts on DHCP lease +:global LogAndError; + :if ([ :typeof $leaseActIP ] = "nothing" || \ [ :typeof $leaseActMAC ] = "nothing" || \ [ :typeof $leaseServerName ] = "nothing" || \ [ :typeof $leaseBound ] = "nothing") do={ - :log error "This script is supposed to run from ip dhcp-client."; - :error "Error: See log for details."; + $LogAndError "This script is supposed to run from ip dhcp-client."; } :local Scripts; -- cgit v1.2.3-70-g09d2