#! /bin/sh
#
# |-----------------------------------------------------------|
# | Copyright (c) 1991, 1990 MIPS Computer Systems, Inc.      |
# | All Rights Reserved                                       |
# |-----------------------------------------------------------|
# |          Restricted Rights Legend                         |
# | Use, duplication, or disclosure by the Government is      |
# | subject to restrictions as set forth in                   |
# | subparagraph (c)(1)(ii) of the Rights in Technical        |
# | Data and Computer Software Clause of DFARS 252.227-7013.  |
# |         MIPS Computer Systems, Inc.                       |
# |         950 DeGuigne Avenue                               |
# |         Sunnyvale, California 94088-3650, USA             |
# |-----------------------------------------------------------|
#
# $Header: tzsetup,v 1.5.2.1 92/06/24 13:35:07 marker Exp $
#
# Set up the timezone files.
#
# The file /etc/zoneinfo/uncompiled is supplied with each new system
# release.  If the file exists, the timezone files are recompiled
# and the file is removed.
#
# If there is no file called /etc/zoneinfo/localtime, the timezone
# is set to "US/Pacific" and the user is pointed to the manual page
# for further instructions.
#

PATH=/bin:/usr/bin:/etc

case "$1" in
'start')
	if [ -f /etc/zoneinfo/uncompiled ]
	then
		/etc/zic /etc/zoneinfo/SOURCES/* >/dev/null 2>&1
		rm -f /etc/zoneinfo/uncompiled
	fi
	if [ ! -f /etc/zoneinfo/localtime ]
	then
		zic -l "US/Pacific"
		echo "Timezone set to US/Pacific.  See zic(1m) for details"
	fi
	;;

'stop')
	;;

*)
	echo "usage: /etc/init.d/tzsetup {start|stop}"
	;;
esac
exit 0
