summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-wifischedule/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-wifischedule/luasrc')
-rw-r--r--applications/luci-app-wifischedule/luasrc/model/cbi/wifischedule/wifi_schedule.lua6
1 files changed, 4 insertions, 2 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 07730225b0..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
@@ -239,7 +241,7 @@ function force_wifi.validate(self, value, d)
if fs.access("/usr/bin/iwinfo") then
return value
else
- return nil, translate("Could not find required programm /usr/bin/iwinfo")
+ return nil, translate("Could not find required program /usr/bin/iwinfo")
end
else
return "1"