| Main index | Section 8 | 日本語 | Options |
It provides a scripting language that can be used to automate tasks, do pre-configuration or assist in recovery procedures. This scripting language is roughly divided in two main components. The smaller one is a set of commands designed for direct use by the casual user, called "builtin commands" for historical reasons. The main drive behind these commands is user-friendliness. The larger component is the scripting language built into the boot loader. FreeBSD provides three different interpreters: Forth, Lua and Simple. The Forth loader is based on an ANS Forth compatible Forth interpreter based on FICL, by John Sadler. The Lua loader is a full Lua interpreter from https://www.lua.org/. The Simple loader only interprets a list of builtin commands without any control structure.
During initialization, loader will probe for a console and set the console variable, or set it to serial console ("comconsole") if the previous boot stage used that. If multiple consoles are selected, they will be listed separated by spaces. Then, devices are probed, currdev and loaddev are set, and LINES is set to 24. Finally, an interpreter specific file will be executed.
FICL was written by John Sadler <john_sadler@alum.mit.edu>.
Warner Losh <imp@FreeBSD.org> integrated Lua into the tree based on initial work done by Pedro Souza for the 2014 Google Summer of Code.
| LOADER (8) | September 29, 2021 |
| Main index | Section 8 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
