From: jestabro@amt.tay1.dec.com <jestabro@amt.tay1.dec.com>
Subject: Re: Date
Date: Thu, 12 Dec 1996 10:32:03 -0500 [thread overview]
Message-ID: <d3a59b6f1e71c1b64966369b1e86b766.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.SUN.3.91.961211192634.1784A-100000@promised-land>
>>> 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
next prev parent reply other threads:[~1996-12-12 15:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.SUN.3.91.961211192634.1784A-100000@promised-land>
1996-12-12 1:53 ` Date Mike Holling
1996-12-12 4:29 ` Date Brian E.W. Wood
1996-12-12 7:18 ` Date Randy Lee Carpenter
1996-12-12 15:32 ` jestabro [this message]
1998-04-25 0:12 date Joakim Roubert
[not found] <Pine.LNX.3.95.961212084408.996A-100000@astro1.ce.uevora.pt>
1996-12-12 20:32 ` Date sp0t the w0nder slug
[not found] <Pine.BSF.3.91.961211185209.3396E-100000@phluffy.cyberport.net>
1996-12-12 4:33 ` Date Chris Adams
1996-12-12 5:20 ` Date Michal Jaegermann
1996-12-12 8:46 ` Date Miguel Avillez
-- strict thread matches above, loose matches on Subject: below --
1996-12-12 4:16 Date Steven N. Hirsch
[not found] <Pine.OSF.3.93.961211182512.16514A-100000@alpha.bgsu.edu>
1996-12-12 0:27 ` Date sp0t the w0nder slug
[not found] <43n2vlwhr6.fsf@comnets.rwth-aachen.de>
1996-12-11 23:26 ` Date Randy Lee Carpenter
1996-12-11 9:30 Date Martin Ostermann
1996-12-10 18:57 Date RHS Linux User
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox