Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Bug Setting Sys Clock on Halt ... FIX
@ 2001-08-04 22:33 William A. Welch III
  0 siblings, 0 replies; only message in thread
From: William A. Welch III @ 2001-08-04 22:33 UTC (permalink / 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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-08-04 22:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-04 22:33 Bug Setting Sys Clock on Halt ... FIX William A. Welch III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox