|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/sh - |
|
|
|
# |
|
|
|
# $OpenBSD: MAKEDEV,v 1.33 2001/06/28 02:58:55 kjc Exp $ |
|
|
|
# $OpenBSD: MAKEDEV,v 1.34 2002/01/04 03:00:44 deraadt Exp $ |
|
|
|
# |
|
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
|
# All rights reserved. |
|
|
@ -33,7 +33,7 @@ |
|
|
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
|
|
# SUCH DAMAGE. |
|
|
|
# |
|
|
|
# $OpenBSD: MAKEDEV,v 1.33 2001/06/28 02:58:55 kjc Exp $ |
|
|
|
# $OpenBSD: MAKEDEV,v 1.34 2002/01/04 03:00:44 deraadt Exp $ |
|
|
|
# |
|
|
|
# Device "make" file. Valid arguments: |
|
|
|
# all makes all known devices, including local devices, |
|
|
@ -384,9 +384,10 @@ pty*) |
|
|
|
umask 0 |
|
|
|
eval `echo $offset $name | awk ' { b=$1; n=$2 } END { |
|
|
|
for (i = 0; i < 16; i++) |
|
|
|
printf("mknod tty%s%x c 4 %d;" \ |
|
|
|
"mknod pty%s%x c 5 %d; ", \ |
|
|
|
n, i, b+i, n, i, b+i); }'` |
|
|
|
printf("rm -f tty%s%x pty%s%x;" \ |
|
|
|
"mknod tty%s%x c 4 %d;" \ |
|
|
|
"mknod pty%s%x c 5 %d; ", \ |
|
|
|
n, i, n, i, n, i, b+i, n, i, b+i); }'` |
|
|
|
umask 77 |
|
|
|
;; |
|
|
|
esac |
|
|
|