* Added timing fix

This commit is contained in:
Steven Barth 2008-06-01 17:22:21 +00:00
parent 8cce07d695
commit c73afe8b25

View file

@ -28,6 +28,11 @@ require("luci.http")
require("luci.sys")
require("luci.fs")
-- Dirty OpenWRT fix
if (os.time() < luci.fs.mtime(luci.sys.libpath() .. "/dispatcher.lua")) then
os.execute('date -s '..os.date('%m%d%H%M%Y', luci.fs.mtime(luci.sys.libpath() .. "/dispatcher.lua")))
end
-- Local dispatch database
local tree = {nodes={}}