diff options
author | Steven Barth <steven@midlink.org> | 2008-06-01 17:22:21 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-01 17:22:21 +0000 |
commit | c73afe8b25378af675081dd76d0ecf5903586139 (patch) | |
tree | c4ec5c9bb19cf7f1fd40b07ed325dbd5d8ac6961 /libs/web/luasrc/dispatcher.lua | |
parent | 8cce07d6953b2557323f2d31037a0f360caa27c5 (diff) |
* Added timing fix
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 5 |
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={}} |