diff options
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 c7e1ed6fe..ce3de3232 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={}} |