mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 18:14:27 +02:00
lease-script: give hint about mis-usage
This commit is contained in:
parent
933db2ddc8
commit
43d77cb62d
1 changed files with 8 additions and 0 deletions
|
@ -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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue