set clock during emplode sync

Posted by: djc

set clock during emplode sync - 11/07/2003 10:12

i'd really like it if the emplode synchronize process would also set the empeg's clock. i find that the clock drifts a fair bit, and it would be very handy to have it brought back in line automatically during a sync.

--dan.
Posted by: pgrzelak

Re: set clock during emplode sync - 11/07/2003 10:18

Nice touch! I like that...
Posted by: Ezekiel

Re: set clock during emplode sync - 11/07/2003 11:53

Or perhaps an opportunistic nntp daemon that looks for a time server whenever ethernet is active? Just a thought. I like the core concept of auto-setting the time without user input.

-Zeke
Posted by: djc

Re: set clock during emplode sync - 11/07/2003 12:48

sure, that would work, too.

i suspect you mean NTP, though, as i certainly don't want to turn my empeg into a usenet hub.

--dan.
Posted by: Ezekiel

Re: set clock during emplode sync - 11/07/2003 13:12

Yes, of course. How silly of me.
-Zeke
Posted by: mtempsch

Re: set clock during emplode sync - 11/07/2003 13:15

as i certainly don't want to turn my empeg into a usenet hub.

Ah, but consider the joy of reading alt.sysadmin.recovery on your empeg while stuck in traffic. Or have the alt.binaries.pictures.* groups autodecoded and used in the Image Pan visual...

/Michael
Posted by: CrackersMcCheese

Re: set clock during emplode sync - 14/07/2003 08:40

Hmmm... I thought it was supposed to! I've been getting frustrated that mine never did. Now I know why!

Where did I read that it did sync the time? Weird. Maybe it was in a dream!
Posted by: mschrag

Re: set clock during emplode sync - 14/07/2003 14:36

I stole this idea and recommended it on the Pearl beta list, which will share a codebase with the next Empeg releases .... we'll see where it goes.
Posted by: pgrzelak

Re: set clock during emplode sync - 14/07/2003 15:24

Hopefully into the code tree for the player! That is something I always wanted.
Posted by: Roger

Re: set clock during emplode sync - 14/07/2003 15:46

Hopefully into the code tree for the player!

Er. When we say "shared codebase", we don't mean that every product runs the same binary.

A huge amount of code is shared between the products, but a fair amount isn't. Most of it's turned on or off by preprocessor #defines.

I guess that what I'm saying is this: The fact that Pearl supports a particular feature doesn't automatically mean that the car player will support it.

In the interim, you could just use my scripts, from here. You'll need base.tar.gz and configs.tar.gz. You'll need to edit the contents of configs.tar.gz before you can use them. Copy the .tar.gz files into /drive0, and then extract them into the root with:

# cd /
# rw ; rwm
# tar xvfz drive0/base.tar.gz
# tar xvfz drive0/configs.tar.gz
# ro ; rom ; exit

One of the configuration scripts runs ntpdate when you drop to a shell prompt. I find that it keeps my clock vaguely correct to do this periodically. You could probably wire it up to the Hijack menu or something.

It also replaces the 'rwm' script with one that passes -o nocheck to 'mount', making it faster.
Posted by: pgrzelak

Re: set clock during emplode sync - 14/07/2003 15:50

Cool! Thanks! Oh, I have already replaced the rwm script - waiting for an rwm (unmodified) to finish on 80GB drives is brutal!
Posted by: genixia

Re: set clock during emplode sync - 14/07/2003 19:55

You could probably wire it up to the Hijack menu or something.


Yeah, I have ntpdate running out of preinit (in AC mode only). I'm sure it'd run fine from hijacks @EXEC config.ini feature too, I just haven't gotten around to migrating that yet.