|
From: | Paul Jarc |
Subject: | Re: launched by rungetty bash breaks terminal input interpretation upon runlevel change |
Date: | Mon, 03 Dec 2001 11:23:48 -0500 |
User-agent: | Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu) |
Dumas Patrice <dumas@centre-cired.fr> wrote: > #to show the problem > 1:3:respawn:/sbin/rungetty tty1 -u root -g root --noclear -- /bin/bash > --login > 4:4:respawn:/sbin/rungetty tty1 -u root -g root --noclear -- /bin/start_test I think init doesn't like this. The first field should correspond to the tty, so using id "4" with tty1 won't work. It follows that you can't run different commands on the same tty in different runlevels. But you can run a script in both runlevels. The script could check the current runlevel, and exec the appropriate command line. Then you would replace the two lines above with: 1:34:respawn:/path/to/script > #to be able to change runlevel > 2:3:respawn:/sbin/rungetty tty2 -u root -g root --noclear -- /bin/bash > --login > 5:4:respawn:/sbin/rungetty tty2 -u root -g root --noclear -- /bin/bash > --login Those can be combined more easily: 2:34:respawn:/sbin/rungetty tty2 -u root -g root --noclear -- /bin/bash --login paul
[Prev in Thread] | Current Thread | [Next in Thread] |