* Added timing fix
authorSteven Barth <steven@midlink.org>
Sun, 1 Jun 2008 17:22:21 +0000 (17:22 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 1 Jun 2008 17:22:21 +0000 (17:22 +0000)
libs/web/luasrc/dispatcher.lua

index c7e1ed6..ce3de32 100644 (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={}}