:
: 'Bring it up'
:
/etc/cpmode < /etc/unconfig.cp > /dev/null
/etc/cpmode < /etc/iounconfig.cp > /dev/null
cp /etc/rootmtab /etc/mtab
PATH=:/bin:/usr/bin:/etc
export PATH
rm -f /etc/maxusers
a=`sysname`
:
:  'If this is an auto-ipl, do the dskfix'
:
if [ "(" $a = AUTOUTS ")" -o "(" $a = autouts ")" ]; then
	cpcmd sp cons start "*"
	dskfix
	if test $? -ne 0
	then
		cpcmd msg "*" dskfix failed
		cpcmd sp cons stop close
		sync

	fi
else
        echo "Type \"dskfix\" to check the disks."
	hup sh -i < /dev/cons > /dev/cons 2>/dev/cons
fi

cpmode < /etc/reconfig.cp > /dev/null
cpmode < /etc/ioreconfig.cp > /dev/null
mkfs /dev/vio0 512 > /dev/null
/etc/mountlist

/etc/update
rm -f /usr/spool/out/.spoolpid
rm -f /dev/tape/*
/etc/vmread -c -h&
/etc/accton
/etc/cron&
/etc/vmbrod
if [ "(" $a = AUTOUTS ")" -o "(" $a = autouts ")" ]; then
	echo "Automatic logon" | mail sys
else
        echo "Please enter your name and the reason the system was down,"
        echo "followed by a period, '.', on a new line."
        mail sys < /dev/cons
        date
fi
cpcmd disc
