[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: getting time from timeserver on a dial-up



This one time, at band camp, Kevin.Bewley@camr.org.uk said:
> Hi,
>    I'm using Debian 3.0r1 stable on a dialup in the UK. I'm using PAP
> authentication that CHAT's to the modem then launches pppd and away we go.
> What I'd like is for the machine to check and set (if necessary) the system
> clock based on the time from one of the many timeservers on the internet.
> 
> What package do I need to do this?
> 
> How do I make it autorun once pppd has got the ppp connection up and
> running (I use the pon script)

I'd use a program like ntpdate - it's designed to run once and exit,
rather than keep checking ll the time.  apt-get install it, and put a
script in either /etc/ppp/ip-up.d or /etc/networking/ip-up.d that calls
it.

-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | There is not much to choose between a   |
|  steve@lobefin.net             | woman who deceives us for another, and  |
|  http://www.lobefin.net/~steve | a woman who deceives another for        |
|  			         | ourselves.   -- Augier                  |
 --------------------------------------------------------------------------

Attachment: pgpRmw9JdCty9.pgp
Description: PGP signature


Reply to: