summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-02 12:42:37 +0000
committerJohn Crispin <john@openwrt.org>2014-06-02 12:42:37 +0000
commitdcf42b40fc79f35551cdd24da15ad1811c62bb64 (patch)
tree6ffe7e26b8ea6fa9f9190ed53fae69178912b31e /package/base-files
parent583b908bc70739cce7c315c467633364329a7710 (diff)
downloadmtk-20170518-dcf42b40fc79f35551cdd24da15ad1811c62bb64.zip
mtk-20170518-dcf42b40fc79f35551cdd24da15ad1811c62bb64.tar.gz
mtk-20170518-dcf42b40fc79f35551cdd24da15ad1811c62bb64.tar.bz2
base-files: removes logging
Since logd haven't started at this point, logging does not work. Signed-off-by: Nuno Goncalves <nunojpg@gmail.com> SVN-Revision: 40904
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/sysfixtime4
1 files changed, 1 insertions, 3 deletions
diff --git a/package/base-files/files/etc/init.d/sysfixtime b/package/base-files/files/etc/init.d/sysfixtime
index 525d765..ca19e78 100755
--- 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
}