1 .\" Copyright (c) 1999 Daniel C. Sobral
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 .\" $FreeBSD: src/sys/boot/forth/loader.4th.8,v 1.5.2.6 2002/07/07 14:32:16 schweikh Exp $
32 .Nd loader.conf processing tools
34 The file that goes by the name of
36 is a set of commands designed to manipulate
42 and uses one of its commands to automatically read and process
45 files. Other commands exists to help the user specify alternate
50 by themselves are not enough for most uses. Please refer to the
51 examples below for the most common situations, and to
53 for additional commands.
55 Before using any of the commands provided in
60 .Dl include loader.4th
62 This line is present in the default
64 file, so it isn't needed (and should not be re-issued) in a normal setup.
66 The commands provided by it are:
67 .Bl -tag -width disable-module_module -offset indent
69 Boot as specified by the
78 .Pa /boot/defaults/loader.conf ,
81 files specified in it, and then proceeds to boot as specified in them. This
82 is the command used in the default
88 so it can be stopped for further interaction with
92 Initialize the supporting library so commands can be used without
98 .Pa /boot/defaults/loader.conf
101 files specified in it. Returns a flag on the stack to indicate
102 if any configuration file was successfully loaded.
104 .It Ic read-conf Ar filename
105 Reads and processes a
107 file. Does not proceed to boot.
109 .It Ic enable-module Ar module
110 Enables the loading of
113 .It Ic disable-module Ar module
114 Disables the loading of
117 .It Ic toggle-module Ar module
118 Toggles the loading of
122 .It Ic show-module Ar module
123 Shows the information gathered in the
125 files about the module
131 files to specify the action after a module loading fails.
136 files to specify the action after a module loading fails.
139 .Bl -tag -width /boot/loader.4th -compact
143 .It Pa /boot/loader.4th
146 .It Pa /boot/loader.rc
148 bootstrapping script.
149 .It Pa /boot/defaults/loader.conf
156 .Pa /boot/loader.rc :
158 .Bd -literal -offset indent -compact
159 include /boot/loader.4th
163 Load a different kernel with the standard configuration:
165 .Bd -literal -offset indent -compact
166 set kernel="kernel.old"
171 Read an additional configuration file and then proceed to boot:
173 .Bd -literal -offset indent -compact
175 read-conf /boot/special.conf
179 Disable the loading of the splash screen module and bitmap and then
182 .Bd -literal -offset indent -compact
184 disable-module splash_bmp
185 disable-module bitmap
198 .An Daniel C. Sobral Aq dcs@FreeBSD.org .
200 A British espionage series.