Re: ttyp's...

Neil Moore (amethyst@valjean.sfhs.floyd.k12.ky.us)
Thu, 19 Dec 1996 16:08:55 -0500


>
>
> >> I rm'ed ttyp* then did "mknod <file> c 4 7" for each one. Now upon trying
>
> (he now has 16 tty's all at 4,7)
>
> >ttypn should be c 3 n, according to linux/Documentation/devices.txt
> >(and my Slackware system, although that's not really helping my case
> >much :). Try:
>
> on my slackware system (slackware 3.1), ttyp0 starts at 4,192..
>
> >Or simply;
> >
> >for x in 0 1 2 3 4 5 6 7 8 9 a b c d e f; do
> > MAKEDEV ttyp$x
> >done
>
> i'd go with this one, since MAKEDEV is more likely to create new ttyp? with the
> proper major,minor..

Not if the MAKEDEV script is out of date, though. No matter how a specific
distribution thinks it should be, the kernel documentation says major 3. I
can see a number of systems breaking because of this when moving to 2.2.x
(or whatever release removes support for major 4 ttyp). The fact that the
Slackware distribution does something is not a good indication that it is
the correct thing to do; in fact, it is often a good indication to the
contrary :)

-- 
-Neil Moore          http://www.sfhs.floyd.k12.ky.us/~amethyst
(finger amethyst@valjean.sfhs.floyd.k12.ky.us for my Geek Code)