[net.unix] dedicated tty lines

ebk@iedl02.UUCP (02/13/84)

The easiest way to have a dedicated tty line is this:
	mknod /dev/printer c 22 1
	chmod a=w /dev/printer
	mknod /dev/tty01 c 22 1

in /etc/ttys:
	2Ltty01
where L is a special entry in getty that sets up the speed and things the way
you want, and has a null login prompt. (It also helps to not write the
system banner if flag = 'L'.) Then the line is always set to the right speed,
and even though the tty01 node is not writable, the other node with the same
device number never gets touched!

				John Owens
				duke!ncsu!mcnc!uvacs!icase!oducs1!owens_j

phil@sequent.UUCP (02/18/84)

> The easiest way to have a dedicated tty line is this:
> 	mknod /dev/printer c 22 1
> 	chmod a=w /dev/printer
> 	mknod /dev/tty01 c 22 1
> 

Having more than one name that points to the same device is not
a particularly good idea.  It is a much better practice to make
a hard link to the two or use "mv".  i.e.: 

 	mknod /dev/tty01 22 1
 	ln /dev/tty01 /dev/printer
 	chmod a=w /dev/printer

How many people know why this is better?
-- 

	Phil Hochstetler
	Sequent Computer Systems
	...!sequent!phil