diff options
author | Dirk Brenken <dev@brenken.org> | 2019-03-19 08:48:01 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2019-03-19 20:52:00 +0100 |
commit | f08c01976f51bae1f452e339f3ea18be8043e172 (patch) | |
tree | 17c704c2138c97039e4893db0233edbd280c2d09 /applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule | |
parent | 90f0e093304da1b1a3fbfbb39216fd1de3679f47 (diff) |
luci-app-wifischedule: apply-bugfix
* minimal fix for #2631 (untested)
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule')
-rw-r--r-- | applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 61a94ca5dc..1644514166 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 |