All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
$Id: loader.4th.8,v 1.1 1999/04/24 17:25:25 dcs Exp $
Note: The date here should be updated whenever a non-trivial
change is made to the manual page.
.Dd April 25, 1999 .Dt LOADER.4TH 8 .Os .Sh NAME .Nm loader.4th .Nd loader.conf processing tools .Sh DESCRIPTION The file that goes by the name of .Nm is a set of commands designed to manipulate .Xr loader.conf 5 files. The default
a /boot/loader.rc includes .Nm and uses one of it's commands to automatically read and process the standard .Xr loader.conf 5 files. Other commands exists to help the user specify alternate configurations.
p The commands of .Nm by themselves are not enough for most uses. Please refer to the examples below for the most common situations, and to .Xr loader 8 for additional commands.
p Before using any of the commands provided in .Nm No , it must be included through the command:
p .Dl include loader.4th
p This line is present on the default
a /boot/loader.rc file, so it isn't needed (and should not be re-issued) in a normal setup.
p The commands provided by it are: l -tag -width disable-module_module -offset indent t Ic boot-conf Boot as specified by the .Xr loader.conf 5 files read. It uses c autoboot , so it can be stopped. t Ic start Reads
a /boot/defaults/loader.conf , all other .Xr loader.conf 5 files specified in it, and then proceeds to boot as specified in them. This is command used on the default
a /boot/loader.rc file, and it uses the
a autoboot command (see .Xr loader 8 ), so it can be stopped for further interaction with .Xr loader 8 . t Ic read-conf Ar filename Reads and processes a .Xr loader.conf 5 file. Does not proceeds to boot. t Ic enable-module Ar module Enables the loading of .Ar module . t Ic disable-module Ar module Disables the loading of .Ar module . t Ic toggle-module Ar module Toggles the loading of .Ar module on and off. t Ic show-module Ar module Shows the information gathered in the .Xr loader.conf 5 files about the module .Ar module . t Ic retry Used inside .Xr loader.conf 5 files to specify the action after a module loading fails. t Ic ignore Used inside .Xr loader.conf 5 files to specify the action after a module loading fails. .El .Sh FILES l -tag -width /boot/loader.4th -compact t Pa /boot/loader The .Xr loader 8 . t Pa /boot/loader.4th .Nm itself. t Pa /boot/loader.rc .Xr loader 8 bootstrapping script. t Pa /boot/defaults/loader.conf File loaded by the c start command. .El .Sh EXAMPLES Standard
p d -literal -offset indent -compact include /boot/loader.4th start .Ed
p Loads a different kernel with the standard configuration:
p d -literal -offset indent -compact set kernel="kernel.old" unload boot-conf .Ed
p Reads an additional configuration file and then proceeds to boot:
p d -literal -offset indent -compact unload read-conf /boot/special.conf boot-conf .Ed
p Disable the loading of the splash screen module and bitmap and then proceeds to boot:
p d -literal -offset -indent -compact unload disable-module splash_bmp disable-module bitmap boot-conf .Ed
p .Sh SEE ALSO .Xr loader.conf 5 , .Xr loader 8 .Sh HISTORY .Nm first appeared in .Fx 3.2 . .Sh AUTHORS .Nm was written by .An Daniel C. Sobral Aq dcs@freebsd.org . .Sh BUGS A british espionage series.