brc(1M)brc(1M)NAME
brc, bcheckrc - system initialization procedures
SYNOPSIS
/etc/brc
/etc/bcheckrc
DESCRIPTION
These shell procedures are executed via entries in /etc/inittab by
init(1M) whenever the system is booted (or rebooted).
First, the bcheckrc procedure checks the status of the root filesystem.
If the root filesystem is found to be bad, bcheckrc repairs it.
Then, the brc procedure clears the mounted filesystem table, /etc/mtab,
and puts the entry for the root filesystem into the mount table.
After these two procedures have executed, init checks for the initdefault
value in /etc/inittab. This tells init in which run level to place the
system. Since initdefault is initially set to 2, the system is placed in
the multiuser state via the /etc/rc2 procedure.
Note that bcheckrc should always be executed before brc. Also, these
shell procedures can be used for several run-level states.
On a diskless system bcheckrc is responsible for updating device files by
running the MAKEDEV(1m) command. In order to reduce the time it takes a
system to boot, bcheckrc would run MAKEDEV(1m) only if the file
/var/boot/.RunMAKEDEV is present.
SEE ALSOfsck(1M), init(1M), rc2(1M), shutdown(1M).
Page 1