1#!/bin/sh
2
3t1="p q r s t u v w x y z P Q R S T"
4t2a="0 1 2 3 4 5 6 7 8 9 a b c d e f"
5t2b="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"
6
7mkpty()
8{
9          echo "tty$1$2       none                                    network"
10}
11
12cat "$@"
13cat << _EOF
14#
15# Pseudo-ttys
16#
17_EOF
18
19for x in a b
20do
21          eval w=\$t2$x
22          for i in $t1
23          do
24                    for j in $w
25                    do
26                              mkpty $i $j
27                    done
28          done
29done
30