|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: MAKEDEV,v 1.36 1998/02/23 05:29:17 jason Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.37 1998/03/02 05:12:20 todd Exp $ |
|
|
# |
|
|
# |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# All rights reserved. |
|
|
# All rights reserved. |
|
@ -197,10 +197,7 @@ std) |
|
|
mknod stdin c 24 0 ; chmod 666 stdin |
|
|
mknod stdin c 24 0 ; chmod 666 stdin |
|
|
mknod stdout c 24 1 ; chmod 666 stdout |
|
|
mknod stdout c 24 1 ; chmod 666 stdout |
|
|
mknod stderr c 24 2 ; chmod 666 stderr |
|
|
mknod stderr c 24 2 ; chmod 666 stderr |
|
|
mknod ttya c 12 0 |
|
|
|
|
|
mknod ttyb c 12 1 |
|
|
|
|
|
mknod ttyc c 12 4 |
|
|
|
|
|
mknod ttyd c 12 5 |
|
|
|
|
|
|
|
|
sh ${this} ttya ttyb ttyc ttyd |
|
|
mknod fb c 22 0 ; chmod 666 fb |
|
|
mknod fb c 22 0 ; chmod 666 fb |
|
|
mknod mouse c 13 0 ; chmod 666 mouse |
|
|
mknod mouse c 13 0 ; chmod 666 mouse |
|
|
mknod kbd c 29 0 ; chmod 666 kbd |
|
|
mknod kbd c 29 0 ; chmod 666 kbd |
|
@ -471,6 +468,20 @@ lkm) |
|
|
chmod 640 lkm |
|
|
chmod 640 lkm |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
tty[a-z]) |
|
|
|
|
|
unit=`expr $i : 'tty\([a-z]\)'` |
|
|
|
|
|
rm -f tty$unit |
|
|
|
|
|
case $unit in |
|
|
|
|
|
a) n=0 ;; |
|
|
|
|
|
b) n=1 ;; |
|
|
|
|
|
c) n=4 ;; |
|
|
|
|
|
d) n=5 ;; |
|
|
|
|
|
*) echo unknown tty device $i ;; |
|
|
|
|
|
esac |
|
|
|
|
|
mknod tty$unit c 12 $n |
|
|
|
|
|
chown uucp.wheel tty$unit |
|
|
|
|
|
;; |
|
|
|
|
|
|
|
|
pty*) |
|
|
pty*) |
|
|
case $unit in |
|
|
case $unit in |
|
|
0) offset=0 name=p;; |
|
|
0) offset=0 name=p;; |
|
|