mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-06-24 23:18:38 +02:00
11 lines
731 B
Text
11 lines
731 B
Text
# Disable WiFi interfaces at night via scheduler (cron).
|
|
|
|
# To avoid being locked out, make sure to run a script to enable wifi interfaces when you wake up.
|
|
# Also, put the wifi-enabler script in a button of your choice. Mode button or reset button. Mode button is recommended.
|
|
# See below...
|
|
|
|
/system scheduler
|
|
add comment="Shutdown WiFi @night to avoid electronic interference!" interval=1d name="WiFi Disable" on-event=\
|
|
"/int wifiwave2 disable [find]; /int wireless disable [find];" policy=ftp,reboot,read,write,policy,test start-date=mar/05/2022 start-time=00:04:00
|
|
|
|
# /system routerboard mode-button set enabled=yes on-event=":log info \"Mode button pressed\"; /int wifiwave2 enable [find]; /int wireless enable [find];"
|