From: "William A. Welch III" <wwelch@hotmail.com>
Subject: Bug Setting Sys Clock on Halt ... FIX
Date: Sat, 04 Aug 2001 15:33:04 -0700 [thread overview]
Message-ID: <3B6C7820.1090407@hotmail.com> (raw)
I haven't been reading this group a lot lately, so this may have been
mentioned ... but since it's an error, it's worth mentioning again.
I currently have RH 7.1 installed on a 164LX machine (AlphaBIOS upgraded
to SRM). Until recently (fix below) whenever I would boot my machine
the date would be correct except for the year which would be set to
2000. I tracked down the problem and there are three incorrect files
which must be patched to fix this bug.
First, /etc/sysconfig/clock did not set 'SRM' to true. Here is the diff:
$ diff /etc/sysconfig/clock.BAK /etc/sysconfig/clock
3a4
> SRM=true
The second file is /etc/rc.d/rc.sysinit Technically, this file is not
broken and will not cause problems in it's current state, but it is also
not correct. Here is the diff:
$ diff /etc/rc.d/rc.sysinit.BAK /etc/rc.d/rc.sysinit
71a72,73
> elif [ "${CLOCKMODE}" = "SRM" ]; then
> SRM=true
Third, /etc/rc.d/init.d/halt does not chech for SRM in
/etc/sysconfig/clock and does not use the "--directisa" option when
setting the system clock on shutdown. Here is the diff:
$ diff /etc/rc.d/init.d/halt.BAK /etc/rc.d/init.d/halt
82a83,84
> elif [ "${CLOCKMODE}" = "SRM" ]; then
> SRM=true
105a108
>
108c111
< CLOCKFLAGS="$CLOCKFLAGS -S";
---
> CLOCKFLAGS="$CLOCKFLAGS -S --directisa";
Enjoy,
Bill Welch
reply other threads:[~2001-08-04 22:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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