From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,677cfdeec9d154f2,start X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-08-04 15:33:20 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!newsfeed.nyc.globix.net!newsfeed.sjc.globix.net!cyclone-sf.pbi.net!206.13.28.144!news.pacbell.net.POSTED!not-for-mail Message-ID: <3B6C7820.1090407@hotmail.com> From: "William A. Welch III" User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.3) Gecko/20010801 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Subject: Bug Setting Sys Clock on Halt ... FIX Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 04 Aug 2001 15:33:04 -0700 NNTP-Posting-Host: 64.167.151.111 X-Complaints-To: abuse@pacbell.net X-Trace: news.pacbell.net 996964400 64.167.151.111 (Sat, 04 Aug 2001 15:33:20 PDT) NNTP-Posting-Date: Sat, 04 Aug 2001 15:33:20 PDT Organization: SBC Internet Services Xref: archiver1.google.com comp.os.linux.alpha:3591 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