projects
/
project
/
luci.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6a495942254f2ef8f74afe63bef98b6abc5b59e4
[project/luci.git]
/
contrib
/
package
/
luci-addons
/
dist
/
etc
/
init.d
/
luci-fixtime
1
#!/bin/sh /etc/rc.common
2
START=5
3
4
start() {
5
cat <<' EOF' | lua -l luci.fs -l luci.sys -
6
if (os.time() < 1000000000) then
7
os.execute('date -s ' .. os.date('%m%d%H%M%Y', luci.fs.mtime(luci.sys.libpath())))
8
end
9
EOF
10
}