mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
Document nologin option flag to tty configuration directive
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
72bc3b1a91
commit
9fc33418f9
1 file changed
+9
-2
+9
-2
@@ -152,10 +152,12 @@ Syntax
|
||||
* `include <CONF>`
|
||||
Include another configuration file. Absolute path required.
|
||||
|
||||
* `tty [LVLS] <DEV> [BAUD] [noclear] [nowait] [TERM]`
|
||||
* `tty [LVLS] <DEV> [BAUD] [noclear] [nowait] [nologin] [TERM]`
|
||||
`tty [LVLS] <CMD> <ARGS> [noclear] [nowait]`
|
||||
The first variant of this option uses the built-in getty on the given
|
||||
TTY device DEV, in the given runlevels. Default baud rate is `38400`.
|
||||
TTY device DEV, in the given runlevels. The DEV may be the special
|
||||
keyword `@console`, which is very useful on embedded systems. Default
|
||||
baud rate is `38400`.
|
||||
|
||||
**Example:**
|
||||
```conf
|
||||
@@ -182,6 +184,11 @@ Syntax
|
||||
embedded systems running multiple unused getty wastes both memory
|
||||
and CPU cycles, so `wait` is the preferred default.
|
||||
|
||||
The `nologin` option disables getty and `/bin/login`, and gives the
|
||||
user a root (login) shell on the given TTY `<DEV>` immediately.
|
||||
Needless to say, this is a rather insecure option, but can be very
|
||||
useful for developer builds, during board bringup, or similar.
|
||||
|
||||
Notice the ordering, the `TERM` option to the built-in getty must be
|
||||
the last argument.
|
||||
|
||||
|
||||
Reference in new issue
Block a user