
#	@(#)rc.sh	1.7

TZ=PST8PDT
export TZ

if [ ! -f /etc/mnttab ]
then
	> /etc/mnttab
	/etc/devnm / | grep -v swap | grep -v root | /etc/setmnt
fi
set `who -r`
if [ $7 = 2 ]
then
	: put mounts here
	mount /dev/am0c /dsk1
	rm -f /usr/adm/acct/nite/lock*
	/usr/lib/ex3.7preserve -
	/bin/su adm -c /usr/lib/acct/startup
	echo Accounting Process Started
	/usr/lib/errdemon
	echo Errdemon Started
	rm -f /usr/spool/lp/FIFO
	rm -f /usr/spool/lp/SCHEDLOCK
	/bin/su lp -c /usr/lib/lpsched
	echo LP Scheduler Started
#	echo Starting Network:
#	echo "	rlogind..."
#	/etc/rlogind
#	echo "	rwhod..."
#	/etc/rwhod
#	echo "	remshd..."
#	/etc/remshd
#	hostname UniSoft
	/bin/su sys -c "/usr/lib/sa/sadc /usr/adm/sa/sa`date +%d` &"
	mv /usr/adm/sulog /usr/adm/OLDsulog
	mv /usr/adm/cronlog /usr/adm/OLDcronlog
	> /usr/adm/cronlog
	/etc/cron
	echo Cron Started
#	rm -f /tmp/*
	rm -f /usr/spool/uucp/LCK*
#	rm -f /usr/spool/lpd/lock
#	rm -f /usr/spool/vpd/lock
#	rm -f /usr/spool/dpd/lock
#	rm -f /usr/spool/dpd/glock
fi
