1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

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;