brc(ADM) 19 June 1992 brc(ADM) 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 filesystem. If the root filesystem 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 auto- boots. Then, the brc procedure clears the mounted filesystem table, /etc/mnttab, and puts the entry for the root filesystem into the mount table. After these two procedures have executed, init checks for the ``initde- fault'' value in /etc/inittab. This tells init in which run-level to place the system. Since ``initdefault'' is initially set to 2, the sys- tem 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)