#!/sbin/sh
# 
# $Copyright
# Copyright 1993, 1994, 1995  Intel Corporation
# INTEL CONFIDENTIAL
# The technical data and computer software contained herein are subject
# to the copyright notices; trademarks; and use and disclosure
# restrictions identified in the file located in /etc/copyright on
# this system.
# Copyright$
# 
 
#
# (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
# ALL RIGHTS RESERVED
#
#
# OSF/1 Release 1.0

set `who -r`
if [ $9 != "S" ]
then
        exit
fi

#
# Synchronize with network time. Must be run after Inet is started
#
if [ -f /sbin/ntptime -a -s /etc/ntp.conf ]
then
        echo "Setting the current date"
	/sbin/ntptime -s
elif [ -f /sbin/rdate ] ; then
        echo "Setting the current date"
	/sbin/rdate -s
fi

