Changeset View
Changeset View
Standalone View
Standalone View
stand/lua/cli.lua.8
Show All 20 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" 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 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd December 17, 2020 | .Dd July 24, 2021 | ||||
.Dt CLI.LUA 8 | .Dt CLI.LUA 8 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm cli.lua | .Nm cli.lua | ||||
.Nd FreeBSD Lua CLI module | .Nd FreeBSD Lua CLI module | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
.Nm | .Nm | ||||
contains the main functionality required to add new CLI commands, which can be | contains the main functionality required to add new CLI commands, which can be | ||||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
.Ic autoboot | .Ic autoboot | ||||
.It | .It | ||||
.Ic boot | .Ic boot | ||||
.It | .It | ||||
.Ic boot-conf | .Ic boot-conf | ||||
.It | .It | ||||
.Ic reload-conf | .Ic reload-conf | ||||
.It | .It | ||||
.Ic enable-module | .Ic device-disable | ||||
.It | .It | ||||
.Ic disable-module | .Ic disable-module | ||||
.It | .It | ||||
.Ic enable-module | |||||
.It | |||||
.Ic toggle-module | .Ic toggle-module | ||||
.It | .It | ||||
.Ic show-module-options | .Ic show-module-options | ||||
.El | .El | ||||
.Pp | .Pp | ||||
For | For | ||||
.Ic autoboot , | .Ic autoboot , | ||||
.Ic boot , | .Ic boot , | ||||
Show All 20 Lines | |||||
commands manipulate the list of modules to be loaded along with the kernel. | commands manipulate the list of modules to be loaded along with the kernel. | ||||
Modules blacklisted are considered disabled by | Modules blacklisted are considered disabled by | ||||
.Ic toggle-module . | .Ic toggle-module . | ||||
These commands will override any such restriction as needed. | These commands will override any such restriction as needed. | ||||
The | The | ||||
.Ic show-module-options | .Ic show-module-options | ||||
command will dump the list of modules that loader has been made aware of and | command will dump the list of modules that loader has been made aware of and | ||||
any applicable options using paged output. | any applicable options using paged output. | ||||
.Pp | |||||
The | |||||
.Ic device-disable | |||||
command sets the environment variable that disables the device argument. | |||||
.Ss Exported Functions | .Ss Exported Functions | ||||
The following functions are exported from | The following functions are exported from | ||||
.Nm : | .Nm : | ||||
.Bl -tag -width cli.arguments -offset indent | .Bl -tag -width cli.arguments -offset indent | ||||
.It Fn cli.arguments ... | .It Fn cli.arguments ... | ||||
Takes varargs passed on the stack from | Takes varargs passed on the stack from | ||||
.Xr loader 8 | .Xr loader 8 | ||||
to | to | ||||
Show All 13 Lines |