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