mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-07-23 20:14:28 +02:00
WiFi enable and disable scripts / cron / scheduler events
This commit is contained in:
parent
80469763d7
commit
f520a13473
2 changed files with 38 additions and 0 deletions
11
scripts/wifi-disable.rsc
Normal file
11
scripts/wifi-disable.rsc
Normal file
|
@ -0,0 +1,11 @@
|
|||
# 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];"
|
Loading…
Add table
Add a link
Reference in a new issue