summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule')
-rw-r--r--applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua4
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 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