From a2d74c9a859a05b8e860cdcd087d8c88dea8278d Mon Sep 17 00:00:00 2001 From: Pothi Kalimuthu <1254302+pothi@users.noreply.github.com> Date: Mon, 11 Sep 2023 06:19:36 +0530 Subject: [PATCH] Simplify the routine and reduce the error conditions --- ap-scripts/wifi-disable.rsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ap-scripts/wifi-disable.rsc b/ap-scripts/wifi-disable.rsc index f40fda0..93194c8 100644 --- a/ap-scripts/wifi-disable.rsc +++ b/ap-scripts/wifi-disable.rsc @@ -6,7 +6,7 @@ /system scheduler add comment="Shutdown WiFi @night to avoid electronic interference!" interval=1d name="WiFi Disable" on-event=\ - ":do { /int wifiwave2 disable [find] } on-error={}; :do { /int wireless disable [find] } on-error={}"\ + "/int disable [find type~\"wifi|wlan\"]"\ policy=ftp,reboot,read,write,policy,test start-date=sep/03/2023 start-time=23:04:00 -# /system routerboard mode-button set enabled=yes on-event=":log info \"Mode button pressed\"; /int wifiwave2 enable [find]; /int wireless enable [find];" +# /system routerboard mode-button set enabled=yes on-event="wifi-disable"