Created
May 14, 2021 20:43
-
-
Save sebastian13/47e788371474d73552593b621eeacd33 to your computer and use it in GitHub Desktop.
Script to enable & disable wifi on a Mikrotik (standalone) Access Point using the Mode Button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:if ( [/int wir get 0 disabled ] = true ) do={} else={ | |
:foreach i in= [ /int wir find ] do={ :int wir disable $i }; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:if ( [/int wir get 0 disabled ] = true ) do={ | |
:foreach i in= [ /int wir find ] do={ :int wir enable $i }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment