lkml.org 
[lkml]   [1996]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ttyp's...

>
>
> >> 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)

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.049 / U:0.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site