#!/bin/bash # Created by Ben Okopnik on Wed Nov 21 23:06:09 EST 2001 # Links '/etc/localtime' to appropriate TZ [ $UID -gt 0 ] && { printf "You need to be root.\n"; exit; } cd /usr/share/zoneinfo/US PS3="Please select a timezone: " select tz in * do [ "$tz" = "" ] && { printf "Invalid choice; timezone not set.\n" exit } ln -sf $PWD/$tz /etc/localtime printf "The timezone is now US/$tz.\n" exit done