lease-script: use $LogAndError

This commit is contained in:
Christian Hesse 2020-02-24 20:09:51 +01:00
parent 7ec411c542
commit 0326a7222c

View file

@ -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;