dayalan manohar proclaimed:
> I want to install xntp since my sytem has a flaky bios/clock which
> causes the date to be inaccurate.I have used an application called
> tardis in windows in which one just has to click to get the time and set
> the computers clock.It can also be used to provide the time for dhcp for
> booting  modem etc.In linux I found xntp.From the archives I got the
> following info from previous posts:


<snip>

> My query is - in linux one uses hwclock to set the date in the bios.Also
> linux only refers to the bios for date at boot time - correct me if I am
> wrong.What is a good method to automatically get the time from an ntp
> server and set the date in the bios?I thought of using a script get the
> time using xntp and then set the time using hwclock.Can this be
> done?Also this is for a system with only a temporary dial-up
> connection.So the script can be called in the ip-up script?

Possible solutions:

1. Write a script that will invoke xntp or ntpdate and then set the clock
using hwclock.  BTW, between xntp and ntpdate, go with ntpdate.  It is much
easier to use.  Invoke this script periodically every 1 hour or so from
cron.

2. Same as above.  But your script will also make sure that it is actually
online before running ntpdate.

Thaths


-- 
Lenny: So, Homer, if we vote for you, what are you going to do different?
Homer: What am I, the answer man?  Just vote for me.
Sudhakar C13n    http://www.aunet.org/thaths/    Lead Indentured Slave

----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to