[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:

        stop|restart|reload)
                [ "$GMT" = "-u" ] && GMT="--utc"
                hwclock --systohc $GMT
                if [ "$VERBOSE" != no ]
                then
                        echo "CMOS clock updated to `date`."
                fi
                ;;

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

Attachment: pgpNPLC27EPif.pgp
Description: PGP signature


Reply to: