Merge pull request #2632 from dibdot/wifischedule

luci-app-wifischedule: apply-bugfix
This commit is contained in:
Dirk Brenken 2019-03-20 06:15:50 +01:00 committed by GitHub
commit 11e64f84b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,9 @@ end
-- BEGIN Map -- BEGIN Map
m = Map("wifi_schedule", translate("Wifi Schedule"), translate("Defines a schedule when to turn on and off wifi.")) 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") sys.exec("/usr/bin/wifi_schedule.sh cron")
end end
-- END Map -- END Map