[net.unix-wizards] dedicated terminal line

ebk@iedl02.UUCP (02/22/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

Yes, but this does not solve the problem. The point is to have getty
initialize the baud rate and characteristics of the terminal line,
but not to change the mode. If the files are linked, changing one mode
changes the other. (They're the same inode.) However, two devices with the
same minor device number are different to the file system, but the same to
the drivers.

John Owens
uucp:	...!duke!mcnc!ncsu!uvacs!iedl02!ebk
	...!duke!mcnc!ncsu!uvacs!icase!oducs1!owens_j (preferably)
phone: (804) 978-5826