From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199612121532.KAA09328@linux03.amt.tay1.dec.com> Date: Thu, 12 Dec 1996 10:32:03 -0500 From: jestabro@amt.tay1.dec.com Subject: Re: Date In-Reply-To: >>> sp0t the w0nder slug said: > On Wed, 11 Dec 1996, Randy Lee Carpenter wrote: > > > WHy is it that Linux believes the date to be 20 years later than what the > > firware is set to? if I set the firmware to 1996, Linux sez 2016. Is it > > safe to set the firmware to 1976 so Linux is right? > > > I've got the same problem on my EB164... I've just set the date manually > and haven't rebooted. =) When booting from ARC console (via MILO), one wants the clock command executed during bootup to be: clock -A -a which tells the code to expect the year to be as maintained by the ARC firmware. The /etc/sysconfig/clock script file should contain: CLOCKMODE="ARC" And finally, the /etc/rc.d/rc.sysinit script file should have clock-related stuff looking like: > # Set the system clock. > echo -n "Setting clock: " > > if [ -f /etc/sysconfig/clock ]; then > . /etc/sysconfig/clock > if [ ${CLOCKMODE} = "GMT" ]; then > clock -u -a > else > if [ ${CLOCKMODE} = "ARC" ]; then > clock -A -a > else > clock -a > fi > fi > else > clock -a > fi > > date Note especially the intentionally missing "-u" on the "clock -A -a" line. I think this was a problem with the stock RedHat 4.0 script? If you run from SRM, then CLOCKMODE would be LOCAL or GMT, I guess, and you'd not want the "-u" on anything *except* when "GMT", as above. Make sure, if you update the time while running LINUX, that you write it back to the hardware with the appropriate switches; ie, if booting via ARC, use "clock -A -w". Would someone please put this in a FAQ somewhere? --Jay++ ------------------------------------------------------------------------------- American Non Sequitur Society: we don't make sense, but we do like pizza... Jay A Estabrook Alpha Migration Tools - LINUX Project Digital Equipment Corp. (508) 952-4202 or (DTN) 227-4202 151 Taylor Street - TAY1-2 enet: jestabro@amt.tay1.dec.com Littleton, MA 01460-1407 decnet: tallis::jestabro ------------------------------------------------------------------------------- -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com