From: "Török Edwin" <edwin+ml-cerowrt@etorok.net>
To: cerowrt-devel@lists.bufferbloat.net
Subject: Re: [Cerowrt-devel] DNSSEC & NTP Bootstrapping
Date: Tue, 25 Mar 2014 00:09:28 +0200 [thread overview]
Message-ID: <5330AD18.5000508@etorok.net> (raw)
In-Reply-To: <878urzia18.fsf@alrua-x1.karlstad.toke.dk>
On 03/24/2014 11:03 PM, Toke Høiland-Jørgensen wrote:
> Phil Pennock <cerowrt-devel+phil@spodhuis.org> writes:
>
>> For context, I'm currently running OpenWRT; attached is the
>> /etc/init.d/ntpdate which I'm using. It relies upon having Python and
>> dig installed, as I haven't gotten around to building a small C
>> utility to do just this task, but perhaps the approach is useful
>> enough that someone else might do so?
>
> A functionality similar to this is already implemented in openwrt and
> runs as the first thing on boot. It finds the newest file in /etc and
> sets the system time to that:
>
> # cat /etc/init.d/sysfixtime
> #!/bin/sh /etc/rc.common
> # Copyright (C) 2013-2014 OpenWrt.org
>
> 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"
> }
>
I haven't upgraded to -12 yet (still on -9), but logread doesn't seem to get its time updated:
Sat Jan 17 03:41:38 1970 authpriv.notice dropbear[3747]: Pubkey auth succeeded for 'root' with key md5 2a:6d:49:b6:74:91:9c:34:f8:7a:2e:40:65:b2:e9:e9 from 172.30.42.12:52391
Although the date is right:
# date
Mon Mar 24 22:05:20 GMT 2014
I tried running sysfixtime manually, or just run the 'date -s <unix-timestamp>' manually, with no luck.
Any idea how to get logread (or well the daemon/kernel) to update its timestamps?
Best regards,
--Edwin
next prev parent reply other threads:[~2014-03-24 22:09 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-22 3:33 Joseph Swick
2014-03-22 17:42 ` Dave Taht
2014-03-22 18:43 ` Simon Kelley
2014-03-22 19:38 ` Toke Høiland-Jørgensen
2014-03-22 19:42 ` Simon Kelley
2014-03-22 20:00 ` Toke Høiland-Jørgensen
2014-03-24 21:39 ` Simon Kelley
2014-03-27 20:38 ` Simon Kelley
2014-03-28 7:57 ` Toke Høiland-Jørgensen
2014-03-28 9:08 ` Simon Kelley
2014-03-28 9:18 ` Toke Høiland-Jørgensen
2014-03-28 10:41 ` Simon Kelley
2014-03-28 10:48 ` Toke Høiland-Jørgensen
2014-03-28 19:46 ` Simon Kelley
2014-03-28 20:55 ` Simon Kelley
2014-03-29 9:20 ` Toke Høiland-Jørgensen
2014-03-29 10:55 ` [Cerowrt-devel] DNSSEC & NTP Bootstrapping -- prototype! Toke Høiland-Jørgensen
2014-03-29 21:21 ` Michael Richardson
2014-03-29 21:30 ` Dave Taht
2014-03-30 13:21 ` Toke Høiland-Jørgensen
2014-03-30 16:59 ` Dave Taht
2014-03-30 18:38 ` Toke Høiland-Jørgensen
2014-03-30 19:30 ` Toke Høiland-Jørgensen
2014-03-30 20:06 ` Dave Taht
2014-03-30 20:51 ` Toke Høiland-Jørgensen
2014-03-31 12:42 ` Robert Bradley
2014-03-31 17:26 ` Robert Bradley
2014-03-22 21:15 ` [Cerowrt-devel] DNSSEC & NTP Bootstrapping Joseph Swick
2014-03-23 10:12 ` Aaron Wood
2014-03-23 11:15 ` Toke Høiland-Jørgensen
2014-03-23 12:11 ` David Personette
2014-03-23 12:20 ` Toke Høiland-Jørgensen
2014-03-23 12:22 ` Aaron Wood
2014-03-23 22:41 ` Michael Richardson
2014-03-24 9:51 ` Aaron Wood
2014-03-24 9:59 ` Toke Høiland-Jørgensen
2014-03-24 12:29 ` Chuck Anderson
2014-03-24 13:39 ` Toke Høiland-Jørgensen
2014-03-24 14:31 ` Alijah Ballard
2014-03-24 13:54 ` Valdis.Kletnieks
2014-03-24 19:12 ` Phil Pennock
2014-03-24 20:27 ` David Personette
2014-03-24 21:30 ` Phil Pennock
2014-03-24 21:58 ` Dave Taht
2014-03-25 9:55 ` David Personette
2014-03-25 14:25 ` Michael Richardson
2014-03-24 21:03 ` Toke Høiland-Jørgensen
2014-03-24 22:09 ` Török Edwin [this message]
2014-03-24 23:33 ` Toke Høiland-Jørgensen
2014-03-25 1:16 ` Joseph Swick
2014-03-24 22:16 ` Phil Pennock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5330AD18.5000508@etorok.net \
--to=edwin+ml-cerowrt@etorok.net \
--cc=cerowrt-devel@lists.bufferbloat.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox