mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-03 17:54:35 +02:00
introduce templates for scripts depending on capsman or local wireless
This commit is contained in:
parent
56e641a980
commit
fe5386fbec
8 changed files with 180 additions and 7 deletions
|
@ -4,7 +4,9 @@
|
|||
# run scripts on DHCP lease
|
||||
# ( / ip dhcp-server set lease-script=lease-script [ find ] )
|
||||
|
||||
:local scripts { "dhcp-to-dns"; "collect-wireless-mac"; "dhcp-lease-comment" };
|
||||
:local scripts { "dhcp-to-dns";
|
||||
"collect-wireless-mac.local"; "dhcp-lease-comment.local",
|
||||
"collect-wireless-mac.capsman"; "dhcp-lease-comment.capsman" };
|
||||
|
||||
# delay a second to give time to update the lease table
|
||||
:delay 1s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue