luci-app-wifischedule: apply-bugfix

* minimal fix for #2631 (untested)

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken 2019-03-19 08:48:01 +01:00
parent 90f0e09330
commit f08c01976f

View file

@ -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