From bf07a55ca510c4aecc2ec2c5a7ab6e6c83f06190 Mon Sep 17 00:00:00 2001 From: Pothi Kalimuthu <1254302+pothi@users.noreply.github.com> Date: Wed, 9 Nov 2022 07:59:41 +0530 Subject: [PATCH] Add wifi enabler script via mode button --- scripts/wifi-enable.rsc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/wifi-enable.rsc b/scripts/wifi-enable.rsc index 35171e6..5b1aa48 100644 --- a/scripts/wifi-enable.rsc +++ b/scripts/wifi-enable.rsc @@ -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