Re: Solaris 2.7 Daylight saving time fix.



You can clone the relevant parts of a working patch for Solaris 8
with a short shell script (worked fine on Solaris 2.6 and Solaris 7).

-KF

#!/bin/sh
## shell script hack to force solaris DST zonefile updates
## - use cat to preserve hard links between zonefiles
## - only update pre-existing files
## unpack Solaris 8 DST patch 109809-04 under /var/tmp/
## then run this script on Solaris 2.6 / 7 systems
## Keith Farrar <kfarrar@xxxxxxxx>

cd /var/tmp/109809-04/SUNWcsu/reloc/usr/share/lib/zoneinfo

# for f in `find Mideast -type f -print`
for f in `find * -type f -print`
do if [ -f /usr/share/lib/zoneinfo/$f ]; then
cat $f > /usr/share/lib/zoneinfo/$f
ls -lg /usr/share/lib/zoneinfo/$f
fi
done




lcashdol@xxxxxxxxx wrote:
Hi,
I am working on getting Solaris 2.7 compliant with the new DST changes for March 2007. I downloaded the latest updates from:

wget ftp://elsie.nci.nih.gov/pub/tz*.tar.gz

Ran zic on northamerica
Then tested with a zdump:


zdump -v EST5EDT |grep 2007


which still reported April when the DST would occur. What am I missing? this worked for linux.



Relevant Pages

  • Re: Setting up a print queue directory
    ... >I have been charged with setting up a remote print queue on our Solaris ... but it's not a built-in feature of the stock Solaris ... You'll have to modify a shell script to store the files ... After you've entered the above commands, the print software will create ...
    (comp.unix.solaris)
  • Ingeritance of SUID bit?
    ... I've got a small compile C program with the SUID bit ... This executable calls a shell script. ... On Solaris ... the SUID executbale. ...
    (SunManagers)
  • How does jumpstart determine what to put in /etc/default/init
    ... I have some Solaris 8 systems which have:- ... # This file looks like a shell script, ... # TZ, LANG, CMASK, or any of the LC_* environment variables. ...
    (comp.unix.solaris)
  • Re: Problem with bash and variables
    ... I am facing a problem with "bash" on Solaris 10 that I have not ... This is universal shell behavior. ... I created a simple shell script that assign a value to a variable and ...
    (comp.unix.solaris)
  • Re: How to detect users existence over UNIX
    ... I want to write a shell script to do so. ... Do RHEL and Solaris have an /etc/passwd file? ... They both support a multiplicty of local and remote 'directory ... databases' (eg files, NIS, NIS+, LDAP etc) which could be use to ...
    (comp.unix.programmer)