BRC(ADM) UNIX System V
Name
brc, bcheckrc - system initialization procedures
Syntax
/etc/bcheckrc [ -a ]
/etc/brc
Description
These shell procedures are executed via entries in
/etc/inittab by init(M) whenever the system is booted (or
rebooted).
First, the bcheckrc procedure checks the status of the root
file system. If the root file system is found to be bad,
bcheckrc repairs it. When invoked with the -a (autoboot)
flag, bcheckrc will run without operator intervention. init
calls bcheckrc with the -a flag when the system autoboots.
Then, the brc procedure clears the mounted file system
table, /etc/mnttab, and puts the entry for the root file
system 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 will be placed in the multi-
user state via the /etc/rc2 procedure.
Note that bcheckrc should always be executed before brc.
Also, these shell procedures may be used for several run-
level states.
See Also
boot(HW), fsck(ADM), init(M), rc2(ADM), shutdown(ADM)
(printed 2/15/90) BRC(ADM)