Terminal initialization
tinit [-p] [env_var=value...]
The tinit utility lets you bring up login (or other programs) on devices. You normally use tinit to invoke login on the console(s) and serial terminals. It runs as a background process, and is nearly always started in the sysinit file.
After creating the specified commands as its children, tinit waits for any of them to terminate. When one of these commands terminates, tinit re-invokes the command on that device.
For example, let's assume that tinit started a login on /dev/con1. After logging in, the user is presented with a shell. Then, after executing any number of commands, the user decides to terminate the shell. At this point, tinit detects the termination and starts a new login on /dev/con1.
The tinit utility refers to a configuration file (/etc/config/ttys) to obtain information about your terminal devices and the commands you want to start on them. This file contains lines of text, each line containing four fields that give the configuration information for one device, like this:
con1 "/bin/login" qansi-m on
Here's what the four fields in this example define:
The tinit utility is the root of all logins, so any environment variables it sets will be inherited; this makes the tinit command line a convenient place for you to set the environment variables you need, using the env_var options. |
Controlling How Neutrino Starts in the Neutrino User's Guide