|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: MAKEDEV,v 1.21 1997/07/14 04:27:54 downsj Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.22 1997/09/07 20:29:10 dgregor Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.12 1995/11/05 23:50:22 thorpej Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.12 1995/11/05 23:50:22 thorpej Exp $ |
|
|
# |
|
|
# |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
@ -459,7 +459,7 @@ pty*) |
|
|
while [ $n -lt 16 ] |
|
|
while [ $n -lt 16 ] |
|
|
do |
|
|
do |
|
|
nam=$name`hex $n` |
|
|
nam=$name`hex $n` |
|
|
rm -rf {tty,pty}$nam |
|
|
|
|
|
|
|
|
rm -f {tty,pty}$nam |
|
|
mknod tty$nam c 4 "$(( $offset + $n ))" |
|
|
mknod tty$nam c 4 "$(( $offset + $n ))" |
|
|
mknod pty$nam c 5 "$(( $offset + $n ))" |
|
|
mknod pty$nam c 5 "$(( $offset + $n ))" |
|
|
n="$(( $n + 1 ))" |
|
|
n="$(( $n + 1 ))" |
|
|