![]() |
![]() |
RouterOS Scripts a collection of scripts for MikroTik RouterOS |
ℹ️ Info: This script can not be used on its own but requires the base installation. See main README for details.
This script is supposed to run from IPv4 DHCP server as lease script. On a
DHCP lease it runs each script containing the following line, where ## is
a decimal number for ordering:
# provides: dhcpv4-server-lease, order=##
Currently it runs if available, in order:
hotspot-to-wpa-cleanup, which is an optional cleanup script
of hotspot-to-wpaJust install the script:
$ScriptInstallUpdate dhcpv4-server-lease;
… and add it as lease-script to your dhcp server:
/ip/dhcp-server/set lease-script="dhcpv4-server-lease" [ find ];
RouterOS Scripts documentation generated on Mon, 06 Jul 2026 15:05:00 +0200 for main/3532/e8fb8fe7
Copyright © 2013-2026 Christian Hesse <mail@eworm.de>