Merge pull request #2632 from dibdot/wifischedule
[project/luci.git] / applications / luci-app-wifischedule / luasrc / model / cbi / wifischedule / wifi_schedule.lua
index 61a94ca5dc3244ed765aa870290dcfca31b0837f..164451416639cd10b48a8fe86e3bcb12bb8cbc7c 100644 (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