|
@ -1,5 +1,5 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# $OpenBSD: MAKEDEV,v 1.25 1997/09/07 19:56:10 dgregor Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.26 1997/09/07 20:00:40 dgregor Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $ |
|
|
# |
|
|
# |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
@ -293,7 +293,7 @@ pty*) |
|
|
while [ $n -lt 16 ] |
|
|
while [ $n -lt 16 ] |
|
|
do |
|
|
do |
|
|
nam=$name`hex $n` |
|
|
nam=$name`hex $n` |
|
|
rm -rf tty$nam pty$nam |
|
|
|
|
|
|
|
|
rm -f tty$nam 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 ))" |
|
|