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

Re: date and time lost after reboot

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:

                [ "$GMT" = "-u" ] && GMT="--utc"
                hwclock --systohc $GMT
                if [ "$VERBOSE" != no ]
                        echo "CMOS clock updated to `date`."

Greg Wooledge                    | "Truth belongs to everybody."
wooledge@kellnet.com             |   Red Hot Chili Peppers,
http://www.kellnet.com/wooledge/ |

Attachment: pgpgQzVtDjoCd.pgp
Description: PGP signature

Reply to: