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

lease-script: give hint about mis-usage

This commit is contained in:
Christian Hesse
2019-07-05 23:38:44 +02:00
parent 933db2ddc8
commit 43d77cb62d

View File

@ -4,6 +4,14 @@
#
# run scripts on DHCP lease
: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.";
}
:local Scripts;
:local ScriptsAssign {
"dhcp-to-dns";