Add wifi enabler script via mode button

This commit is contained in:
Pothi Kalimuthu 2022-11-09 07:59:41 +05:30
parent f520a13473
commit bf07a55ca5
No known key found for this signature in database
GPG key ID: 08202A469C2D0E06

View file

@ -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