# "@[$]rc_csh	2.21  12/21/83 15:54:25 - Zilog Inc"
	echo
	uname -sn
	echo "Multi-user Startup"
	echo

# Check for filesystem consistency
	/etc/fsck -y /dev/root
	/etc/fsck -y /dev/rusr /dev/rtmp
	/etc/mount /dev/tmp /tmp >& /dev/null
	/etc/fsck -y -t /tmp/scratch /dev/rz
	/etc/fsck -y -t /tmp/scratch /dev/rsmd5
	/etc/umount /dev/tmp >& /dev/null

# Now mount the filesystems
	/etc/mfs

# Set the greeting
	echo
	echo
	echo 'Ey Du Penner'
	echo 'Mach das ja alles richtig'
	echo 'sonst gibts Haue'
        echo 'Guck in den Spiegel'
        echo 'und schau Dir den'
        echo 'elenden Kerl darin an'
	echo
	echo

# Set the date
	/etc/ndatem

# Give the user a chance to interrupt, then go multi-user
	/bin/echo -n 'The date the system knows is ' ; date
	echo 'Going multi-user in 30 seconds\!'

# configure system for correct modem/tty configuration
	/etc/ttyconfig -t 0-8

# Remove the remote lock file
	cat /dev/null > /usr/spool/uucp/LCK..tmp
	rm -f /usr/spool/uucp/LCK..*

# Save the su and cron log files
	# if ( -e /usr/adm/sulog ) then
		# mv /usr/adm/sulog /usr/adm/osulog
	# endif
	# if ( -e /usr/lib/cronlog ) then
		# mv /usr/lib/cronlog /usr/lib/ocronlog
	# endif
#	rm -f /usr/lib/cronlog /usr/adm/sulog

# Start cron, update and the dqueuer
#	/etc/cron > /usr/lib/cronlog
	/etc/update
	/etc/dqueuer -r

# zero out utmp file
	cat /dev/null > /etc/utmp

# start avs system
	su db-adm -c /avs/adm/startup

# cleanup /tmp - except vi
	rm -f `/bin/ls -d /tmp/* | /bin/egrep -v /tmp/Ex` >& /dev/null

# trunc wtmp
	cp /dev/null /usr/adm/wtmp
	
	exit 0
