home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / live / usr / sbin / tzconfig < prev    next >
Text File  |  1999-02-11  |  539b  |  16 lines

  1. #! /bin/sh
  2. # tzconfig - wrapper for tzselect to make /etc/localtime link
  3. if [ -f /etc/timezone ]; then
  4.         echo "Your current time zone is set to `cat /etc/timezone`"
  5.         echo -n "Do you want to change that? [n]: "
  6.         read ans
  7.         if [ "x$ans" = "x" -o "$ans" = "n" -o "$ans" = "no" ]; then
  8.                 echo "Your time zone will not be changed"
  9.                 exit 0
  10.         fi
  11. fi
  12. TIMEZONE="`/usr/bin/tzselect`"
  13. rm -f /etc/timezone
  14. echo "$TIMEZONE" > /etc/timezone
  15. ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime
  16.