Messages in this thread |  | | From | (Mike Bristow) | Subject | Re: ttyp's... | Date | 21 Dec 1996 16:10:42 GMT |
| |
Neil Moore <amethyst@valjean.sfhs.floyd.k12.ky.us> said something like: [snip] > > 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?
#!/bin/sh # MAKEDEV.ptty # By mike@shivan.demon.co.uk # Quick and dirty hack to rearrange my pty's to the # new numbering scheme...
PTTY_M_PRE="/dev/pty" PTTY_S_PRE="/dev/tty" PTTY_OWN="root:tty" PTTY_PERM="666"
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 done echo done done
-- Mike Bristow: mike@shivan.demon.co.uk The best UK M:tG tourney page: http://www.shivan.demon.co.uk/tourney/ My public PGP key: http://www.shivan.demon.co.uk/pgp/pgp.txt
|  |