[lkml]   [1996]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: ttyp's...

Neil Moore <>
said something like:
> > 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).

perhaps we should have a /usr/src/linux/scripts/MAKEDEV.ptty like this?

# MAKEDEV.ptty
# By
# Quick and dirty hack to rearrange my pty's to the
# new numbering scheme...


for i in p q r s t u v w x y z a b c d e ; do
/bin/echo -n doing bank $i
bank=`expr index pqrtsuvwxyzabcde $i - 1`
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f ; do
/bin/echo -n .
no=`expr index 0123456789abcdef $j - 1`
minor=`expr $bank \* 16 + $no`
rm -f $PTTY_M_PRE$i$j $PTTY_S_PRE$i$j
mknod -m $PTTY_PERM $PTTY_M_PRE$i$j c 2 $minor
mknod -m $PTTY_PERM $PTTY_S_PRE$i$j c 3 $minor
chown $PTTY_OWN $PTTY_M_PRE$i$j $PTTY_S_PRE$i$j
echo done

Mike Bristow:
The best UK M:tG tourney page:
My public PGP key:

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