NetBSD/etc/mkttys
christos 0553899e97 remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.
2004-06-20 21:30:26 +00:00

30 lines
377 B
Bash
Executable File

#!/bin/sh
t1="p q r s t u v w x y z P Q R S T"
t2a="0 1 2 3 4 5 6 7 8 9 a b c d e f"
t2b="g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
mkpty()
{
echo "tty$1$2 none network"
}
cat "$@"
cat << _EOF
#
# Pseudo-ttys
#
_EOF
for x in a b
do
eval w=\$t2$x
for i in $t1
do
for j in $w
do
mkpty $i $j
done
done
done