Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2007 21:29:12 -0800
From:      "Ted Mittelstaedt" <tedm@toybox.placo.com>
To:        "Ken Cochran" <kwc@theworld.com>, <freebsd-questions@freebsd.org>
Subject:   Re: Fixing DST manually on rel4 & rel5
Message-ID:  <00da01c766c2$dfaffdd0$3c01a8c0@coolf89ea26645>
References:  <200703141501.l2EF1e2Z267703@shell01.TheWorld.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <kwc@theworld.com>
To: <freebsd-questions@freebsd.org>
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"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00da01c766c2$dfaffdd0$3c01a8c0>