#	Copyright (c) 1984 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"@(#)initpkg:./inittab.sh	1.16"
#ident	"$Revision: 1.1 $"

is:s:initdefault:
# fs::sysinit:/etc/bcheckrc </dev/console >/dev/console 2>&1
# mt::sysinit:/etc/brc </dev/console >/dev/console 2>&1

s0:0s:wait:/etc/rc0 >/dev/console 2>&1 </dev/console
of:0:wait:/sbin/uadmin 2 0 >/dev/console 2>&1 </dev/console # halt

s1:1:wait:/etc/shutdown -y -iS -g0 >/dev/console 2>&1 </dev/console

# setsid: does setsid(2) syscall, opens argv[1] 3 times and execv's argv+2.
#	  Useful mostly to set process group leader so ^C works.
#	  /etc/init avoids setpgrp() on :wait: and :bootwait: lines.

prei:2:bootwait:setsid /dev/console  /etc/mrinitrc
prem:2:bootwait:setsid /dev/console  /etc/mrmountrc mntlocal
prev:2:bootwait:setsid /dev/console  /etc/mrvolhdrrc bootmini
preo:2:bootwait:setsid /dev/console  /etc/mrreorgrc reorg
pren:2:bootwait:setsid /dev/console  /etc/mrnetrc start

prep:2:wait:setsid /dev/console  /sbin/echo Invoking software installation.'\n'
inst:2:wait:setsid /dev/console  /etc/mrinstrc
aftp:2:wait:setsid /dev/console  /sbin/echo Preparing to restart system ...'\n'

aftn:2:wait:setsid /dev/console  /etc/mrnetrc stop
afto:2:wait:setsid /dev/console  /etc/mrreorgrc cleanup
aftv:2:wait:setsid /dev/console  /etc/mrvolhdrrc bootnorm
aftm:2:wait:setsid /dev/console  /etc/mrmountrc unmntlocal
aftr:2:wait:setsid /dev/console  /sbin/echo The system is being restarted.'\n'
aftu:2:wait:setsid /dev/console  /sbin/uadmin 2 1

s2:3:wait:/etc/rc2 >/dev/console 2>&1 </dev/console
s3:3:respawn:setsid /dev/console /etc/restore_system
