mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-06-28 00:40:10 +02:00
Add wifi enabler script via mode button
This commit is contained in:
parent
f520a13473
commit
bf07a55ca5
1 changed files with 3 additions and 1 deletions
|
@ -1,11 +1,13 @@
|
|||
# Enable WiFi in the morning
|
||||
|
||||
# using mode button
|
||||
/system routerboard mode-button set enabled=yes on-event=":log info \"Mode button pressed\"; /int wifiwave2 enable [find]; /int wireless enable [find];"
|
||||
|
||||
# as a cron event
|
||||
/system scheduler
|
||||
add comment="Enable WiFi @morning" interval=1d name="WiFi Enable" on-event="/int wifiwave2 enable [find]; /int wireless enable [find];" \
|
||||
policy=read,write,policy,test start-date=jan/03/2022 start-time=05:30:00
|
||||
|
||||
|
||||
# as a script to be used
|
||||
|
||||
/interface wifiwave2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue