From f08c01976f51bae1f452e339f3ea18be8043e172 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Tue, 19 Mar 2019 08:48:01 +0100 Subject: [PATCH] luci-app-wifischedule: apply-bugfix * minimal fix for #2631 (untested) Signed-off-by: Dirk Brenken --- .../luasrc/model/cbi/wifischedule/wifi_schedule.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua b/applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua index 61a94ca5d..164451416 100644 --- a/applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua +++ b/applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua @@ -37,7 +37,9 @@ end -- BEGIN Map m = Map("wifi_schedule", translate("Wifi Schedule"), translate("Defines a schedule when to turn on and off wifi.")) -function m.on_commit(self) +m.apply_on_parse = true + +function m.on_apply(self) sys.exec("/usr/bin/wifi_schedule.sh cron") end -- END Map -- 2.25.1