projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kill luci-addons package
[project/luci.git]
/
modules
/
admin-core
/
root
/
etc
/
init.d
/
luci_fixtime
diff --git a/modules/admin-core/root/etc/init.d/luci_fixtime
b/modules/admin-core/root/etc/init.d/luci_fixtime
new file mode 100755
(executable)
index 0000000..
681d9d7
--- /dev/null
+++ b/
modules/admin-core/root/etc/init.d/luci_fixtime
@@ -0,0
+1,11
@@
+#!/bin/sh /etc/rc.common
+
+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())))
+ end
+ EOF
+}