LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-10-2007, 12:10 PM   #16
rch1231
Member
 
Registered: Mar 2007
Location: Bedford, Texas
Posts: 31

Rep: Reputation: 15

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'
 
Old 03-10-2007, 11:27 PM   #17
ohoffm
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
Thanx

Thank you rch1231. Your script worked well.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHat Release 9 and Daylight Savings Time (DST) hbloom Linux - General 10 10-07-2009 12:06 AM
Daylight savings patch for RH 7.2 cavladim Red Hat 1 01-13-2007 08:35 PM
Change to Daylight Savings Time has shifted my file times hippiness Linux - General 4 03-31-2006 02:31 PM
Daylight savings time depdiver Red Hat 2 02-21-2006 10:00 AM
Daylight savings time Jeebizz Slackware 13 11-21-2005 08:08 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration