projects
/
openwrt
/
staging
/
mkresin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
583b908
)
base-files: removes logging
author
John Crispin
<john@openwrt.org>
Mon, 2 Jun 2014 12:42:37 +0000
(12:42 +0000)
committer
John Crispin
<john@openwrt.org>
Mon, 2 Jun 2014 12:42:37 +0000
(12:42 +0000)
Since logd haven't started at this point, logging does not work.
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
SVN-Revision: 40904
package/base-files/files/etc/init.d/sysfixtime
patch
|
blob
|
history
diff --git
a/package/base-files/files/etc/init.d/sysfixtime
b/package/base-files/files/etc/init.d/sysfixtime
index 525d765758d06c3e1cb75e9866a008781bc2f467..ca19e78e025bd389935fbbf8f5f1c58a5085d79c 100755
(executable)
--- a/
package/base-files/files/etc/init.d/sysfixtime
+++ b/
package/base-files/files/etc/init.d/sysfixtime
@@
-6,8
+6,6
@@
START=00
boot() {
local curtime="$(date +%s)"
local maxtime="$(find /etc -type f -exec date +%s -r {} \; | sort -nr | head -n1)"
- [ $curtime -lt $maxtime ] && \
- date -s @$maxtime && \
- logger -t sysfixtime -p daemon.notice "Time fixed"
+ [ $curtime -lt $maxtime ] && date -s @$maxtime
}