HOME=/; export HOME
date
case ${1-xx} in
autoboot)
	echo Autoboot:
	/etc/fsck -p
	case $? in
	0)
		date
		;;
	4)
		/etc/reboot -n
		;;
	8)
		echo "Automatic reboot failed... help!"
		exit 1
		;;
	12)
		echo "Reboot interrupted"
		exit 1
		;;
	*)
		echo "Unknown error in reboot"
		exit 1
		;;
	esac
esac
/etc/ldpcs /etc/pcs750.bin	# load new microcode in 750s
>/etc/mtab
/etc/mount -a
/etc/savecore /tmp/dump
/etc/swapon -a
trap "" 1 2 3
/etc/update
/etc/cron &
cd /tmp
/usr/lib/ex3.7preserve -a
rm -f *
# cd /usr/tmp
# rm -f *
date >> /usr/adm/lastboot
# /etc/accton /tmp/acct > /tmp/acct
# /etc/kdiload			# load KMC microcode for Datakit
# /etc/dkhup			# announce Datakit reboot to controller
# sleep 10
# /etc/mgrproc
# /usr/net/share.go; /usr/net/setup.go	# mount remote file systems and announce us
# /usr/net/face.go	# face server
/etc/procmount
exit 0
