initilize ttySX using other than getty
can you initialize a serial tty so that it only runs one program you specify, such as dopewars or cdp instead of a shell or a getty? basically, bypass the login prompt but only allow that one program to run.
|
Hi frieza,
Some linux distros have the "open" command. You can initialize a program including a line like the folowing at your /etc/inittab: --- 12:2345:respawn:/usr/bin/open -c 12 -w -- /usr/bin/program --- It will start "/usr/bin/program" automatically at the terminal 12 (tty12) |
that works for a vc, but how about a serial line, that was my question
|
hmm...
I think you can modify /etc/mgetty(or mgetty+sendfax)/login.config to run the desired program instead /bin/login You also have to change /etc/inittab to call mgetty at boot time. |
All times are GMT -5. The time now is 04:23 PM. |