diff options
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/admin-core/root/etc/init.d/luci_fixtime | 2 |
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 681d9d7898..f300e45b9b 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 } |