pty madness
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Thu, 17 Feb 1983 08:16:27 +0000 (00:16 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Thu, 17 Feb 1983 08:16:27 +0000 (00:16 -0800)
SCCS-vsn: etc/etc.vax/MAKEDEV 4.6

usr/src/etc/etc.vax/MAKEDEV

index 57afa17..63b4d33 100644 (file)
@@ -1,5 +1,5 @@
 #! /bin/sh
 #! /bin/sh
-#      @(#)MAKEDEV     4.5     %G%
+#      @(#)MAKEDEV     4.6     %G%
 #
 # Device "make" file.  Valid arguments:
 #      std     standard devices (for 730 must be followed by tu0 & tu1)
 #
 # Device "make" file.  Valid arguments:
 #      std     standard devices (for 730 must be followed by tu0 & tu1)
@@ -184,7 +184,7 @@ pty*)
        case $class in
        0|1|2)
                umask 0
        case $class in
        0|1|2)
                umask 0
-               eval `echo $class $name | awk ' { b=$1; n=$2 } END {
+               eval `echo $offset $name | awk ' { b=$1; n=$2 } END {
                        for (i = 0; i < 16; i++)
                                printf("/etc/mknod tty%s%x c 20 %d; \
                                        /etc/mknod pty%s%x c 21 %d; ", \
                        for (i = 0; i < 16; i++)
                                printf("/etc/mknod tty%s%x c 20 %d; \
                                        /etc/mknod pty%s%x c 21 %d; ", \