#!/bin/sh if [ -r /tmp/SeTT_PX ]; then T_PX="`cat /tmp/SeTT_PX`" elif [ ! "$1" = "" ]; then T_PX=$1 else T_PX=/ fi if [ "$COLOR" = "on" -o -r /tmp/SeTcolor ]; then # use color menus dialog --title "TIMEZONE CONFIGURATION" --menu "Select one of the following timezones:" \ 21 40 13 "Australia/LHI" "" "Australia/NSW" "" "Australi\ a/North" "" "Australia/Queensland" "" "Australia/S\ outh" "" "Australia/Tasmania" "" "Australia/Vict\ oria" "" "Australia/West" "" "Australia/Yancowinna" "" "Brazi\ l/Acre" "" "Brazil/DeNoronha" "" "Brazil/East" "" "Brazil\ /West" "" "Canada/Atlantic" "" "Canada/Central" "" "Canada/Ea\ st-Saskatche" "" "Canada/Eastern" "" "Canada/Mountain" "" "Canada/Ne\ wfoundland" "" "Canada/Pacific" "" "Canada/Yukon" "" "Chile/Co\ ntinental" "" "Chile/EasterIsland" "" "CET" "" "Cuba" "" "EET" "" "Eg\ ypt" "" "Factory" "" "GB-Eire" "" "GMT" "" "GMT+0" "" "GMT+1" "" "GM\ T+10" "" "GMT+11" "" "GMT+12" "" "GMT+13" "" "GMT+2" "" "GMT+3" "" "G\ MT+4" "" "GMT+5" "" "GMT+6" "" "GMT+7" "" "GMT+8" "" "GMT+9" "" "GM\ T-0" "" "GMT-1" "" "GMT-10" "" "GMT-11" "" "GMT-12" "" "GMT-2" "" "GM\ T-3" "" "GMT-4" "" "GMT-5" "" "GMT-6" "" "GMT-7" "" "GMT-8" "" "GM\ T-9" "" "GMT0" "" "GMT1" "" "GMT10" "" "GMT11" "" "GMT12" "" "GM\ T13" "" "GMT2" "" "GMT3" "" "GMT4" "" "GMT5" "" "GMT6" "" "GM\ T7" "" "GMT8" "" "GMT9" "" "Greenwich" "" "Hongkong" "" "Iceland" "" "I\ ran" "" "Israel" "" "Jamaica" "" "Japan" "" "Libya" "" "Mexico/BajaNorte" "" "Me\ xico/BajaSur" "" "Mexico/General" "" "MET" "" "NZ" "" "Na\ vajo" "" "PRC" "" "Poland" "" "ROC" "" "ROK" "" "Singapore" "" "Syst\ emV/AST4" "" "SystemV/AST4ADT" "" "SystemV/CST6" "" "SystemV/CST\ 6CDT" "" "SystemV/EST5" "" "SystemV/EST5EDT" "" "SystemV/HST10" "" "Syst\ emV/MST7" "" "SystemV/MST7MDT" "" "SystemV/PST8" "" "SystemV/PST\ 8PDT" "" "SystemV/YST9" "" "SystemV/YST9YDT" "" "Turkey" "" "UCT" "" "U\ TC" "" "Universal" "" "US/Alaska" "" "US/Aleutian" "" "US/\ Arizona" "" "US/Central" "" "US/East-Indiana" "" "US/Eastern" "" "US/H\ awaii" "" "US/Michigan" "" "US/Mountain" "" "US/Pacific" "" "US/Pac\ ific-New" "" "US/Samoa" "" "W-SU" "" "WET" "" "Zulu" "" 2> /tmp/tz if [ $? = 1 -o $? = 255 ]; then rm -f /tmp/tz exit fi TIMEZONE="`cat /tmp/tz`" rm -f /tmp/tz cd $T_PX/var/lib/zoneinfo if [ -r $T_PX/usr/lib/zoneinfo/$TIMEZONE -o \ -r /var/adm/mount/usr/lib/zoneinfo/$TIMEZONE ]; then ln -sf /usr/lib/zoneinfo/$TIMEZONE localtime fi else # no color! while [ 0 ]; do echo -n "Would you like to configure your timezone ([y]es, [n]o)? " read TIMECONF; echo if [ "$TIMECONF" = "n" ]; then break; fi cat << EOF Select one of these timezones: Australia/LHI Australia/NSW Australia/North Australia/Queensland Australia/South Australia/Tasmania Australia/Victoria Australia/West Australia/Yancowinna Brazil/Acre Brazil/DeNoronha Brazil/East Brazil/West Canada/Atlantic Canada/Central Canada/East-Saskatche Canada/Eastern Canada/Mountain Canada/Newfoundland Canada/Pacific Canada/Yukon Chile/Continental Chile/EasterIsland CET Cuba EET Egypt Factory GB-Eire GMT GMT+0 GMT+1 GMT+10 GMT+11 GMT+12 GMT+13 GMT+2 GMT+3 GMT+4 GMT+5 GMT+6 GMT+7 GMT+8 GMT+9 GMT-0 GMT-1 GMT-10 GMT-11 GMT-12 GMT-2 GMT-3 GMT-4 GMT-5 GMT-6 GMT-7 GMT-8 GMT-9 GMT0 GMT1 GMT10 GMT11 GMT12 GMT13 GMT2 GMT3 GMT4 GMT5 GMT6 GMT7 GMT8 GMT9 Greenwich Hongkong Iceland Iran Israel Jamaica Japan Libya Mexico/BajaNorte Mexico/BajaSur Mexico/General MET NZ Navajo PRC Poland ROC ROK Singapore SystemV/AST4 SystemV/AST4ADT SystemV/CST6 SystemV/CST6CDT SystemV/EST5 SystemV/EST5EDT SystemV/HST10 SystemV/MST7 SystemV/MST7MDT SystemV/PST8 SystemV/PST8PDT SystemV/YST9 SystemV/YST9YDT Turkey UCT UTC Universal US/Alaska US/Aleutian US/Arizona US/Central US/East-Indiana US/Eastern US/Hawaii US/Michigan US/Mountain US/Pacific US/Pacific-New US/Samoa W-SU WET Zulu Type it at the prompt below exactly as it appears above. EOF echo -n "Timezone? " read TIMEZONE; echo cd $T_PX/var/lib/zoneinfo if [ -r $T_PX/usr/lib/zoneinfo/$TIMEZONE -o \ -r /var/adm/mount/usr/lib/zoneinfo/$TIMEZONE ]; then echo "Creating link from $TIMEZONE to localtime in /var/lib/zoneinfo..." echo ln -sf /usr/lib/zoneinfo/$TIMEZONE localtime break; else cat << EOF Timezone $TIMEZONE could not be found. You may try again if you wish. Make sure you type the name exactly as it appears - this configuration script is case sensitive. Press [enter] to continue. EOF read JUNK; fi done fi