summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-core
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-01-17 13:52:22 +0000
committerSteven Barth <steven@midlink.org>2009-01-17 13:52:22 +0000
commitb847ba072dc15e4c4de2231f73dc3298c3f34092 (patch)
treec374f2fbcdf17c8ebfbe9e8740afc7c5e281b82d /modules/admin-core
parentd361c24da419470189552c2967f577d598e9aea5 (diff)
Make fixtime more reliable
Diffstat (limited to 'modules/admin-core')
-rwxr-xr-xmodules/admin-core/root/etc/init.d/luci_fixtime2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-core/root/etc/init.d/luci_fixtime b/modules/admin-core/root/etc/init.d/luci_fixtime
index 681d9d789..f300e45b9 100755
--- a/modules/admin-core/root/etc/init.d/luci_fixtime
+++ b/modules/admin-core/root/etc/init.d/luci_fixtime
@@ -5,7 +5,7 @@ START=05
start() {
cat <<' EOF' | lua -l luci.fs -l luci.util -
if (os.time() < 1000000000) then
- os.execute('date -s ' .. os.date('%m%d%H%M%Y', luci.fs.mtime(luci.util.libpath())))
+ os.execute('date -s ' .. os.date('%m%d%H%M%Y', luci.fs.mtime("/etc/init.d/luci_fixtime")))
end
EOF
}