projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove remaining references to boa and lucid
[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
index
f300e45
..
154a786
100755
(executable)
--- a/
modules/admin-core/root/etc/init.d/luci_fixtime
+++ b/
modules/admin-core/root/etc/init.d/luci_fixtime
@@
-1,11
+1,16
@@
#!/bin/sh /etc/rc.common
START=05
#!/bin/sh /etc/rc.common
START=05
+STOP=95
start() {
cat <<' EOF' | lua -l luci.fs -l luci.util -
if (os.time() < 1000000000) then
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("/etc/init.d/luci_fixtime")))
+ os.execute('date -s ' .. os.date('%
Y%m%d%H%M
', luci.fs.mtime("/etc/init.d/luci_fixtime")))
end
EOF
}
end
EOF
}
+
+stop() {
+ [[ -w /etc/init.d/luci_fixtime ]] && cat /dev/null >> /etc/init.d/luci_fixtime && touch /etc/init.d/luci_fixtime
+}