From owner-freebsd-questions@FreeBSD.ORG Thu Mar 15 05:30:45 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8B84F16A402 for ; Thu, 15 Mar 2007 05:30:45 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from mail.freebsd-corp-net-guide.com (mail.web-strider.com [65.75.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id 45AD513C44B for ; Thu, 15 Mar 2007 05:30:45 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from coolf89ea26645 (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.13.8/8.13.8) with SMTP id l2F5UfDb071463; Wed, 14 Mar 2007 22:30:44 -0700 (PDT) (envelope-from tedm@toybox.placo.com) Message-ID: <00da01c766c2$dfaffdd0$3c01a8c0@coolf89ea26645> From: "Ted Mittelstaedt" To: "Ken Cochran" , References: <200703141501.l2EF1e2Z267703@shell01.TheWorld.com> Date: Wed, 14 Mar 2007 21:29:12 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.freebsd-corp-net-guide.com [65.75.192.90]); Wed, 14 Mar 2007 22:30:44 -0700 (PDT) Cc: Subject: Re: Fixing DST manually on rel4 & rel5 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 05:30:45 -0000 here is my quick hack script to manually do this #!/bin/sh zdump -v /etc/localtime | grep 2007 echo If sun Mar 11 and Nov 1 then OK echo Otherwise stop script now and rerun from clean temp dir echo "also ls -l /etc |more and check that localtime is not a link" sleep 5 fetch ftp://sunrise.ipinc.net/pub/tzdata2007c.tar.gz tar -xzf tzdata2007c.tar.gz zic -d zoneinfo northamerica cp -R zoneinfo/* /usr/share/zoneinfo zdump -v /usr/share/zoneinfo/PST8PDT | grep 2007 zdump -v /usr/share/zoneinfo/America/Los_Angeles | grep 2007 echo "if localtime is a link then stop and rm /etc/localtime then" echo "ln -s /usr/share/zoneinfo/PST8PDT /etc/localtime" sleep 5 cp /usr/share/zoneinfo/PST8PDT /etc/localtime zdump -v /etc/localtime | grep 2007 echo If Sun Mar 11 and Nov 1 then OK echo "now rm -r this temp dir" $ I think the ln-s line is backwards, I didn't check it. I think it's been a while since they used softlinks for localtime Ted ----- Original Message ----- From: "Ken Cochran" To: Sent: Wednesday, March 14, 2007 7:01 AM Subject: Fixing DST manually on rel4 & rel5 > Hello -questions: > > This is most certanly a FAQ but I'm not yet finding the kind of > answer I need... > > I have a couple of old FreeBSD systems that I can't (yet) update > to the new Daylight Saving Time rules (based on the email message > that came out on -announce in late February). One is > 4.10-stable, last updated late November 2004 & the other is > 5.4-release. Cvsup brings /usr/src in order but I can't update > ports (yet) to get misc/zoneinfo and it doesn't look like I can > just "transfer" the /usr/share/zoneinfo bits over from /usr/src > without a {build,install}world (also impractical at this time). > > Best I can tell from the message that came from -announce sometime > back, the same fix(es) would apply to both the 4 & 5 branches. > > Is there a "proper" way to fix the timezone on these machines > "manually" pending the "real" change that will happen in the > system according to the previous rules/schedule? (e.g. Fix it > temporarily/manually but not clobber the original rules.) > > Or is there some way to install the new cvsup'ed zoneinfo bits > into an "old" system so I can run tzsetup and have everything > fixed "correctly?" I'm in US Central timezone and I've seen it > reported as CST6CDT (I guess that's in SysV). > > FAQ/doc/book pointers/references are welcome of course - I'm > still digging around in both the Handbook & Complete FreeBSD > and wherever else I can find... > > Many thanks, > > -kc > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >