summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-01 17:22:21 +0000
committerSteven Barth <steven@midlink.org>2008-06-01 17:22:21 +0000
commitc73afe8b25378af675081dd76d0ecf5903586139 (patch)
treec4ec5c9bb19cf7f1fd40b07ed325dbd5d8ac6961 /libs
parent8cce07d6953b2557323f2d31037a0f360caa27c5 (diff)
* Added timing fix
Diffstat (limited to 'libs')
-rw-r--r--libs/web/luasrc/dispatcher.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index c7e1ed6fe2..ce3de32326 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -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={}}