Re: date and time lost after reboot
On 22 Oct 1999, Greg Wooledge wrote:
> Anthony Campbell (acampbell@achc.demon.co.uk) wrote:
>
> > I think something is writing to
> > the hardware clock on closing down but what could this be?
>
> /etc/rc*.d/*hwclock.sh (which are symlinks to /etc/init.d/hwclock.sh).
>
> The relevant code from my version of hwclock.sh is this:
>
> stop|restart|reload)
> [ "$GMT" = "-u" ] && GMT="--utc"
> hwclock --systohc $GMT
> if [ "$VERBOSE" != no ]
> then
> echo "CMOS clock updated to `date`."
> fi
> ;;
>
I have this too, but if I understand it aright it ought to set the hw
clock to the correct time (assuming one has the right time initially.
I'll try inactivating it and see what happens.
Anthony
--
Anthony Campbell - running Linux - Debian 2.1 (Windows-free zone)
Book Reviews: www.achc.demon.co.uk/bookreviews/
"The Moving Finger writes; and, having writ,
Moves on..." - Edward Fitzgerald (Rubaiat of Omar Khayyam)
Reply to: