Re: where to put clock -s?
Lars Wirzenius wrote:
> > I would like to run "clock -s" every time I start the machine.
> > What I need to know is where do I put this?
> It should already be run automatically by /etc/init.d/boot.
Here is what is on /etc/init.d/boot:
# Set and adjust the CMOS clock.
clock -s $GMT
if [ ! -f /etc/adjtime ]
echo "0.0 0 0.0" > /etc/adjtime
clock -a $GMT
# Now that /usr/lib/zoneinfo should be available, announce the local
echo "Local time: `date`"
But when I do "date" and "clock" I get two different times. The
time I get from "date" is way off. So I usually do "clock -s"
and everything is fine. Any idea as why?
Thanks for any information,
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com