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:
@ -4,6 +4,14 @@
|
|||||||
#
|
#
|
||||||
# run scripts on DHCP lease
|
# 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 Scripts;
|
||||||
:local ScriptsAssign {
|
:local ScriptsAssign {
|
||||||
"dhcp-to-dns";
|
"dhcp-to-dns";
|
||||||
|
Reference in New Issue
Block a user