mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-24 18:48:37 +02:00
lease-script: use $LogAndError
This commit is contained in:
parent
7ec411c542
commit
0326a7222c
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue