Home | History | Annotate | Line # | Download | only in etc
      1 #!/bin/sh
      2 
      3 t1="p q r s t u v w x y z P Q R S T"
      4 t2a="0 1 2 3 4 5 6 7 8 9 a b c d e f"
      5 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"
      6 
      7 mkpty()
      8 {
      9 	echo "tty$1$2	none				network"
     10 }
     11 
     12 cat "$@" 
     13 cat << _EOF
     14 #
     15 # Pseudo-ttys
     16 #
     17 _EOF
     18 
     19 for x in a b
     20 do
     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
     29 done
     30