Changeset 5942
- Timestamp:
- 03/27/10 03:44:56 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/modules/admin-core/root/etc/init.d/luci_fixtime
r4072 r5942 2 2 3 3 START=05 4 STOP=95 4 5 5 6 start() { 6 7 cat <<' EOF' | lua -l luci.fs -l luci.util - 7 8 if (os.time() < 1000000000) then 8 os.execute('date -s ' .. os.date('% m%d%H%M%Y', luci.fs.mtime("/etc/init.d/luci_fixtime")))9 os.execute('date -s ' .. os.date('%Y%m%d%H%M', luci.fs.mtime("/etc/init.d/luci_fixtime"))) 9 10 end 10 11 EOF 11 12 } 13 14 stop() { 15 [[ -w /etc/init.d/luci_fixtime ]] && touch /etc/init.d/luci_fixtime 16 }
