bc@ux1.cso.uiuc.edu (B.C.) (03/05/90)
I was trying to add a terminal to my MINIX system the other night. I hooked up the terminal (an adm3a-alike) to /dev/tty2. Then I looked at /etc/ttys. It contains one line: "100". I looked in the AST book, and all I found was a line about the fact that /etc/ttys contains one line per terminal attached to the system. Yeah, thanks, I knew that. I looked for "init" in the book, so I could maybe find the place where it reads /etc/ttys and forks. No such luck; init doesn't appear (at least anywhere I could find in 20 minutes) in the book. So I mounted my source-code partition and dug through the code with elvis. I found that the second entry should be "1fx" where f is the code for 9600/8/N and x is the line number. My question is this: should this number be a '1' or a '2'? Init subtracts a '0' from it to get the line number, so it is unclear whether /dev/tty2 is line 1 (counting from 0) or 2 (counting from 1). I tried both a '1' and a '2' in this position, but neither worked (I think it was my cable, actually), and I am going to try again tonight with a new (null-modem) cable. Anybody got any tips as to what the /etc/ttys entry ought to be? advTHANKSance, Ben Cox b-cox2@uiuc.edu