/*
* CONDITIONALS
*/
-COMMAND_SET_COND(ifexists, "ifexists", "conditional f/d present",
+COMMAND_SET_COND(ifexists, "ifexists", "conditional file/dir present",
command_ifexists);
struct cond {
}
}
-COMMAND_SET_COND(ifset, "ifset", "conditional kenv present", command_ifset);
+COMMAND_SET_COND(ifset, "ifset", "conditional kenv variable present", command_ifset);
static int
command_ifset(int argc, char *argv[])
}
}
-COMMAND_SET_COND(elseifexists, "elseifexists", "conditional f/d present",
+COMMAND_SET_COND(elseifexists, "elseifexists", "conditional file/dir present",
command_elseifexists);
static int
}
}
-COMMAND_SET_COND(else, "else", "cond if/else/endif", command_else);
+COMMAND_SET_COND(else, "else", "conditional if/else/endif", command_else);
static int
command_else(int argc, char *argv[])
}
}
-COMMAND_SET_COND(endif, "endif", "cond if/else/endif", command_endif);
+COMMAND_SET_COND(endif, "endif", "conditional if/else/endif", command_endif);
static int
command_endif(int argc, char *argv[])
<variable>=<value>
- Assign value to variable. Value is always assigned to local variable
- <variable>. If <variable> is in list of known kernel environment
- variables or is a kernel tunable, it is also assigned to the kernel
- environment variable of the given name.
- <variable> is unset if <value> is empty.
+ Assign value to variable. The value is always assigned to local
+ variable <variable>. If <variable> is in the list of known kernel
+ environment variables or is a kernel tunable, the value is also
+ assigned to the kernel environment variable of the given name.
+ Local variables are unset if <value> is empty. Kernel environment
+ variables may have empty values.
Two kinds of variables are maintained by this program (loader(8)):
local variables, that is for loader(8) use only, and kernel
environment variables, that kernel will have access to when it starts.
- The assignment described above, will assign to a local variable and,
- if it seems applicable, also snoop assignment to kernel environment
- variable.
+ The assignment described above, will assign to a local variable and, if
+ it is applicable, also snoop assignment to kernel environment variable.
################################################################################
# TAHCI DControl AHCI module behaviour
Displays <prompt> or a default prompt, and counts down <delay> seconds
before attempting to boot. If <delay> is not specified, the default
- value is 10.
+ value is $autoboot_delay.
################################################################################
# Tboot DBoot immediately
kernel environment variables.
################################################################################
-# Tset Sautoboot_delay DSet the default autoboot delay
+# Tset Sautoboot_delay DSet the default autoboot / menu delay
set autoboot_delay=<value>
- Sets the default delay for the autoboot command to <value> seconds.
+ Sets the default delay in seconds for the `autoboot' and `menu'
+ commands to wait before booting. The default value is 10 seconds.
################################################################################
# Tset Sbootfile DSet the default boot file set
Sets the default set of kernel boot filename(s). It may be overridden
by setting the bootfile variable to a semicolon-separated list of
- filenames, each of which will be searched for in the module_path
- directories. The default bootfile set is "kernel".
+ filenames, each of which will be searched for in the $module_path
+ directories. The default value is "kernel".
################################################################################
# Tset Sboot_askname DPrompt for root device
will be displayed.
################################################################################
+# Tset Sdefault_kernel DSet default kernel directory
+
+ set default_kernel=<path>
+
+ Selects the default kernel directory for `menu' command. Default value
+ is "kernel".
+
+################################################################################
# Tset Scurrdev DSet the current device
set currdev=<device>
Sets the list of directories which will be searched in for modules
named in a load command or implicitly required by a dependency. An
- Empty <path> specifies the current directory. The default module_path
- is ";modules".
+ empty <path> specifies the current directory. The default value is
+ ";modules".
################################################################################
# Tset Sprompt DSet the command prompt
Load kernel and all modules specified by MODULE_load variables.
################################################################################
+# Tifexists DConditional file/dir present
+
+ ifexists <path>
+
+ Conditional <path> exists, i.e. file/dir present.
+
+################################################################################
+# Tifset DConditional kenv variable present
+
+ ifset <env_variable>
+
+ Conditional <env_variable> exists.
+
+################################################################################
+# Telseifexists DConditional file/dir present
+
+ elseifexists <path>
+
+ Conditional <path> exists, i.e. file/dir present.
+
+################################################################################
+# Telse DConditional if/else/endif
+
+ else
+
+ Conditional if/else/endif.
+
+################################################################################
+# Tendif DConditional if/else/endif
+
+ endif
+
+ Conditional if/else/endif.
+
+################################################################################
# Tmenuclear DClear all menus
menuclear
must precede the kernel name, if a kernel name is provided.
Flags are described in
.Xr boot 8 .
+See also
+.Va boot_*
+and
+.Va kernel_options
+variables.
.Pp
.It Ic cd Op Ar directory
Change working directory to
.Fl n
is specified.
.Pp
+.It Ic else
+Conditional if/else/endif.
+.Pp
+.It Ic elseifexists Ar path
+Conditional
+.Ar path
+exists, i.e.\& file/dir present.
+.Pp
+.It Ic endif
+Conditional if/else/endif.
+.Pp
.It Ic heap
Displays memory usage statistics.
For debugging purposes only.
.Cm index
will list all topics available.
.Pp
+.It Ic ifexists Ar path
+Conditional
+Ar path
+exists, i.e.\& file/dir present.
+.Pp
+.It Ic ifset Ar env_variable
+Conditional
+.Ar env_variable
+exists.
+.Pp
.It Ic include Ar
Process script files.
Each file, in turn, is completely read into memory,
.It Va autoboot_delay
Number of seconds
.Ic autoboot
+and
+.Ic menu
will wait before booting.
-If this variable is not defined,
-.Ic autoboot
-will default to 10 seconds.
+Default value is 10 seconds.
.Pp
If set to
.Dq NO ,
.It Va bootfile
List of semicolon-separated search path for bootable kernels.
The default is
-.Dq Li kernel;kernel.old .
+.Dq Li kernel .
.It Va console
Defines the current console.
.It Va currdev
Selects the default device.
Syntax for devices is odd.
+.It Va default_kernel
+Selects default kernel loaded by
+.Ic menu
+command.
.It Va ehci_load
Unset this to disable automatic loading of the EHCI module.
.It Va init_path
The first matching binary is used.
The default list is
.Dq Li /sbin/init:/sbin/oinit:/sbin/init.bak .
+.It Va kernel_options
+Set kernel boot flags.
+See also
+.Ic boot
+command.
.It Va LINES
Define the number of lines on the screen, to be used by the pager.
.It Va module_path