mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-01 21:54:29 +02:00
hotspot-to-wpa-cleanup: drop hard-coded server name, find by comment
This commit is contained in:
parent
0c8bc60648
commit
16a551a0ee
4 changed files with 27 additions and 14 deletions
|
@ -38,9 +38,11 @@ Create a scheduler:
|
|||
|
||||
/system/scheduler/add interval=1d name=hotspot-to-wpa-cleanup on-event="/system/script/run hotspot-to-wpa-cleanup;" start-time=startup;
|
||||
|
||||
And add the lease script to your wpa interfaces' dhcp server:
|
||||
And add the lease script and matcher comment to your wpa interfaces' dhcp
|
||||
server. You can add more information to the comment, separated by comma. In
|
||||
this example the server is called `hotspot-to-wpa`.
|
||||
|
||||
/ip/dhcp-server/set lease-script=lease-script [ find where name~"wpa" ];
|
||||
/ip/dhcp-server/set lease-script=lease-script comment="hotspot-to-wpa=wpa" hotspot-to-wpa;
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue