Here is the script if you want to cut and paste:
#!/bin/bash
echo "This script is provided at no charge and does not in any way guarantee the files will install"
echo "or that the update will work. The user is free to run the script or to simply look at the script"
echo "decide for them selves what needs to be done. The script is based on information from the following"
echo "posting on the internet:"
echo "http://www.linuxquestions.org/questions/showthread.php?t=527036"
echo "run at your own risk."
echo "If the date below is in Standard time (ie CST) continue."
echo "If it is in Daylight time (ie CDT) exit program"
date -d '27 March'
echo "<CTRL> C to Break <ENTER> to Continue"
read akey
mkdir /root/tz
cd /root/tz
echo " "
if [ ! -e "/bin/ksh" ] ;
then
ln -s /bin/bash /bin/ksh
fi
if [ ! -e "/bin/nawk" ] ;
then
ln -s /bin/awk /bin/nawk
fi
wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
tar xvzf /root/tz/tzcode2007c.tar.gz
tar xvzf /root/tz/tzdata2007c.tar.gz
pwd
echo "Compiling files needed for update. Press <ENTER> to continue"
read akey
make install
echo " "
echo "**************"
echo "Second check. If date is March 11, 2007 QUIT if April 1, 2007 continue"
zdump -v America/Chicago | grep 2007
echo "<CTRL> C to Break <ENTER> to Continue"
read akey
./tzselect
mkdir /tmp/zoneinfo
cd /tmp/zoneinfo
tar xvzf /root/tz/tzdata2007c.tar.gz
echo "Creating temporary zone files"
/root/tz/zic -d /tmp/zoneinfo northamerica
cd /usr/share/
mv zoneinfo zoneinfo.old
mv /tmp/zoneinfo .
rm /etc/localtime
ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime
echo "Check to see if update took. Should now read March 11 2007"
zdump -v America/Chicago | grep 2007
echo " "
echo "If the date below is CDT it worked and you are done. If it is in CST the update did not work."
date -d '27 March'
|