#!/bin/csh -f
#
# Network Installation Kit
#
# install.rc: install rc file
#
# Tom Coppeto
# MIT Network Group
# 17 September 1994
#
# $Header: /afs/net.mit.edu/project/netconf/sun4/7.7tom/src/util/RCS/install.rc,v 1.2 94/09/18 16:14:51 testuser Exp $
#

source $util/aliases

vecho "     setting up rc..."

if( ! -f /etc/rc.local) then
	log "     install.rc: no rc.local, hmmm... created one"
	cp /dev/null /etc/rc.local
endif

grep "/etc/athena/rc" /etc/rc.local > /dev/null
if($status) then
	log "     install.rc: adding stuff to rc.local"
	save /etc/rc.local
	echo "/etc/athena/rc"  >> /etc/rc.local
endif

log "     install.rc:  installing /etc/athena/rc"


install -c -m 755 $misc/rc /etc/athena/rc


