home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
live
/
usr
/
sbin
/
tzconfig
< prev
next >
Wrap
Text File
|
1999-02-11
|
539b
|
16 lines
#! /bin/sh
# tzconfig - wrapper for tzselect to make /etc/localtime link
if [ -f /etc/timezone ]; then
echo "Your current time zone is set to `cat /etc/timezone`"
echo -n "Do you want to change that? [n]: "
read ans
if [ "x$ans" = "x" -o "$ans" = "n" -o "$ans" = "no" ]; then
echo "Your time zone will not be changed"
exit 0
fi
fi
TIMEZONE="`/usr/bin/tzselect`"
rm -f /etc/timezone
echo "$TIMEZONE" > /etc/timezone
ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime