Re: where to put clock -s?
Hi,
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 ]
then
echo "0.0 0 0.0" > /etc/adjtime
fi
clock -a $GMT
# Now that /usr/lib/zoneinfo should be available, announce the local
time.
echo
echo "Local time: `date`"
echo
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,
David
--
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
Reply to: