mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
Update documentation for tty .conf option
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -151,7 +151,6 @@ up the TTY, optionally clearing it, and waits for user input before
|
||||
handing over to `/bin/login`, which handles all nasty bits with PAM etc.
|
||||
|
||||
```conf
|
||||
# /etc/finit.conf
|
||||
tty [12345] /dev/tty1 38400 linux
|
||||
tty [12345] /dev/ttyAMA0 115200 vt100 noclear
|
||||
```
|
||||
@@ -419,7 +418,8 @@ append="init=/sbin/finit --debug"
|
||||
To debug startup issues, in particular issues with getty/login, try
|
||||
`configure --enable-fallback-shell`. When no TTYs are detected, and
|
||||
Finit is configured with this option, Finit will try to start a bare
|
||||
`/bin/sh` on the boot console.
|
||||
`/bin/sh` on the boot console. Remember, this is only for debugging
|
||||
and would leave your production system potentially wide open.
|
||||
|
||||
|
||||
Origin & References
|
||||
|
||||
+13
-8
@@ -136,15 +136,20 @@ Syntax:
|
||||
* `include <CONF>`
|
||||
Include another configuration file. Absolute path required.
|
||||
|
||||
* `tty [LVLS] <DEV> [BAUD] [TERM] [noclear]`
|
||||
Start a getty on the given TTY device DEV, in the given runlevels. If
|
||||
no tty setting is given in `finit.conf` no login is possible. Use the
|
||||
`service` stanza to start a stand-alone shell for really bare bones
|
||||
systems.
|
||||
* `tty [LVLS] <DEV> [BAUD] [TERM] [noclear]`
|
||||
Start the built-in getty on the given TTY device DEV, in the given
|
||||
runlevels. Default baud rate is `38400`.
|
||||
|
||||
Finit comes with a lightweight built-in getty, which after it has
|
||||
opened a TTY and the user has input a username, calls `/bin/login`
|
||||
like any other getty.
|
||||
```conf
|
||||
tty [12345] /dev/ttyAMA0 115200 noclear
|
||||
```
|
||||
|
||||
On really bare bones systems Finit offers a fallback shell, but one
|
||||
can also use the `service` stanza to start a stand-alone shell:
|
||||
|
||||
```shell
|
||||
configure --enable-fallback-shell
|
||||
```
|
||||
|
||||
* `console <DEV>`
|
||||
Use this, along with a matching `tty DEV` line, to mark this TTY as a
|
||||
|
||||
Reference in New Issue
Block a user