Re: tty12 dédiée au journal des logs.
On Thu, 19 Dec 2002 nicolas.ledez@free.fr wrote:
> Le Thu, Dec 19, 2002 at 09:33:50AM -0500, Eric LeBlanc a écrit :
> > Tu aurais du lire aussi dans le /etc/inittab, la reponse est la.
> Moi j'y ai pas vu grand chose la dessus...
>
Bon, je vais faire mon BA de la journee !
Dans le man inittab:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[...]
This is an example of a inittab which resembles the old
Linux inittab:
# inittab for linux
id:1:initdefault:
rc::bootwait:/etc/rc
1:1:respawn:/etc/getty 9600 tty1
2:1:respawn:/etc/getty 9600 tty2
3:1:respawn:/etc/getty 9600 tty3
4:1:respawn:/etc/getty 9600 tty4
This inittab file executes /etc/rc during boot and starts
gettys on tty1-tty4.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Kesser getty?
Voyons dans le man getty:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[...]
This section shows examples for the process field of an
entry in the /etc/inittab file. You'll have to prepend
appropriate values for the other fields. See inittab(5)
for more details.
For a hard-wired line or a console tty:
/sbin/getty 9600 ttyS1
For a directly connected terminal without proper carriage
detect wiring: (try this if your terminal just sleeps
instead of giving you a password: prompt.)
/sbin/getty -L 9600 ttyS1 vt100
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Tiens! je vois le mot "terminal". Interessant... voyons les
configurations par defaut du /etc/inittab:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[...]
# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
# <id>:<runlevels>:<action>:<process>
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
7:23:respawn:/sbin/getty 38400 tty7
8:23:respawn:/sbin/getty 38400 tty8
9:23:respawn:/sbin/getty 38400 tty9
10:23:respawn:/sbin/getty 38400 tty10
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hen? ouss qu'il est mon tty12 ?
Cependant, je feel tres genereux... je vais te dire comment ajouter une
nouvelle entree, tout de suite apres la ligne "10:23:....":
12:23:respawn:/sbin/getty 38400 tty12
> Pour moi le terminal est "crée" par le noyau mais pas dans l'inittab.
Tu saisis comment les terminaux sont crees ?
> Nicolas Ledez
>
E.
--
Eric LeBlanc
inouk@igt.net
--------------------------------------------------
UNIX is user friendly.
It's just selective about who its friends are.
==================================================
Reply to: