introduce templates for scripts depending on capsman or local wireless

This commit is contained in:
Christian Hesse 2018-07-09 16:44:44 +02:00
parent 56e641a980
commit fe5386fbec
8 changed files with 180 additions and 7 deletions

View file

@ -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;