X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fadmin-full%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_system%2Fcrontab.lua;h=3e1b9d85d04e579fb3001a01e78fd2047d6486f3;hp=2ae5939c98a65d4a38fdfcdf8f5abe39a17ed681;hb=fdf7d6618d9f46321c3aaffe6d177ceb30fc71cb;hpb=8c9aef1b2de7df6838b939c9eb314ad613bab3d9 diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/crontab.lua b/modules/admin-full/luasrc/model/cbi/admin_system/crontab.lua index 2ae5939c9..3e1b9d85d 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/crontab.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/crontab.lua @@ -2,7 +2,7 @@ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich +Copyright 2008-2013 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -29,6 +29,7 @@ function f.handle(self, state, data) if state == FORM_VALID then if data.crons then fs.writefile(cronfile, data.crons:gsub("\r\n", "\n")) + luci.sys.call("/usr/bin/crontab %q" % cronfile) end end return true