I have 4 digi etherlite boards that allow Wyse and VT100 terminals to connect to our network (stop laughing)
We are switching from an older version of redhat where we have these running to: Red Hat Enterprise Linux Server release 6.5 (Santiago)
I finally got them working and copied the tty settings from the old machine to a file and then loaded them in to the new machine:
Saved via:
stty --save /dev/ttya00 $i > /home/shared/IT/tty/ttya0
Then loaded on new machine with
stty -F /dev/ttya0 `cat /home/shared/IT/tty/ttya0`
and this works fine.
The problem is that on the old machine I turned everything on via inittab (example below)
a0:2345:respawn:/sbin/agetty 19200 ttya00
a1:2345:respawn:/sbin/agetty 19200 ttya01
a2:2345:respawn:/sbin/agetty 19200 ttya02
I have no idea how to do this under the new version.
Like I said I have it working but it's not right
in my /etc/rc.d/rc.local i have things like this:
start tty TTY=/dev/ttya00
start tty TTY=/dev/ttya01
start tty TTY=/dev/ttya02
start tty TTY=/dev/ttya03
start tty TTY=/dev/ttya04
start tty TTY=/dev/ttya05
stty -F /dev/ttya0 `cat /home/shared/IT/tty/ttya0`
stty -F /dev/ttya1 `cat /home/shared/IT/tty/ttya1`
stty -F /dev/ttya2 `cat /home/shared/IT/tty/ttya2`
stty -F /dev/ttya3 `cat /home/shared/IT/tty/ttya3`
stty -F /dev/ttya4 `cat /home/shared/IT/tty/ttya4`
So my question is:
a) how do i save my settings so i don't have to load them each time?
b) how do i do something similiar to inittab to specify which tty's I want agetty/mgetty running on?
Thanks!