From: Dirk Brenken Date: Tue, 19 Mar 2019 07:48:01 +0000 (+0100) Subject: luci-app-wifischedule: apply-bugfix X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F2632%2Fhead;p=oweals%2Fluci.git luci-app-wifischedule: apply-bugfix * minimal fix for #2631 (untested) Signed-off-by: Dirk Brenken --- 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